#include using namespace std; int main() { int n; cin >> n; printf("%.12f\n", (double) 1 / n); return 0; }