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