#include using namespace std; #define REP(i, n) for(int (i) = 0; (i) < (n); (i)++) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) typedef long long ll; int main(void){ int n; cin >> n; cout << (double)1/n << endl; return 0; }