#include <iostream>
using namespace std;
int main()
{
int amount_of_elements; double biggest_difference;
cin >> amount_of_elements;
biggest_difference = 1 - 1.0/amount_of_elements;
cout << biggest_difference;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CglpbnQgYW1vdW50X29mX2VsZW1lbnRzOyBkb3VibGUgYmlnZ2VzdF9kaWZmZXJlbmNlOwoJY2luID4+IGFtb3VudF9vZl9lbGVtZW50czsKCWJpZ2dlc3RfZGlmZmVyZW5jZSA9IDEgLSAxLjAvYW1vdW50X29mX2VsZW1lbnRzOwoJY291dCA8PCBiaWdnZXN0X2RpZmZlcmVuY2U7Cn0=