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