#pragma GCC optimize ("Ofast")
#include<bits/stdc++.h>
using namespace std;
inline void rd(double &x){
  scanf("%lf",&x);
}
inline void wt_L(char a){
  putchar_unlocked(a);
}
inline void wt_L(double x){
  printf("%.15f",x);
}
int main(){
  double N;
  rd(N);
  wt_L(1/N);
  wt_L('\n');
  return 0;
}
// cLay varsion 20191006-1

// --- original code ---
// {
//   double N;
//   rd(N);
//   wt(1/N);
// }