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