#include "bits/stdc++.h" using namespace std; int main() { double N; cin >> N; printf("%.12lf\n", 1 / N); }