#include #include #include #include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int x; cin >> x; double ans = 0; for(int i = x; i <= 60; i++){ for(int j = 2; j <= 1000; j++){ if(i >= 10 && j >= 10) break; ans += 1.0 / pow((double)j, (double)i); } } ans *= 1e6; long long t = (ans + 1e5); cout << t << endl; }