#include using namespace std; int main() { int x; cin >> x; vector zeta(100); for(int i=2;i<100;i++) { for(int j=1;j<100000;j++) { long double nxt = zeta[i] + (long double)1 / powl(j, i); if(nxt - zeta[i] < 1e-18) break; else zeta[i] = nxt; } } long double out = 0; for(int i=x;i<100;i++) { out += zeta[i] - 1; } out *= 1e6; out = floor(out); cout << out << '\n'; }