#include using namespace std; int main() { int N; cin >> N; double ans = (double)1 / N; cout << fixed << setprecision(12) << ans << endl; }