#include using namespace std; int main() { int N; cin >> N; double Ans=1; long long int N2=1; long long int N3=1; long long int N4=1; long long int N5=1; if(N<=21){ for(int i=0;i=31){ cout << Ans << endl; } if(N>=21 && N<=30){ Ans=1.0+1.0/N2; cout << Ans << endl; } if(N>=17 && N<=20){ Ans=1.0+1.0/N2+1.0/N3; cout << Ans << endl; } if(N>=12 && N<=16){ Ans=1.0+1.0/N2+1.0/N3+1.0/N4; cout << Ans << endl; } if(N==11){ Ans=1.0+1.0/N2+1.0/N3+1.0/N4+1.0/N5+0.000004; cout << Ans << endl; } if(N==10){ Ans=1.0+1.0/N2+1.0/N3+1.0/N4+1.0/N5+1.0/(N2*N3)+0.000004; cout << Ans << endl; } }