#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector cands; cands.emplace_back(1); for (int64_t a = 100001; a < 100010; a++) { for (int64_t b = 100001; b < 100010; b++) { cands.emplace_back(a * b); } } sort(cands.begin(), cands.end()); cout << cands[N - 1] << '\n'; return 0; }