#include using namespace std; int main(){ double N; cin>>N; double C=N/7; double T=C/N; printf("%.10f\n", T); }