#include <iostream>
using namespace std;
bool czy_pierwsza(int i) {
}
int pierwsza(int n) {
int numer = 0;
int i = 2;
while (numer != n) {
if (czy_pierwsza(i)) numer += 1;
i += 1;
}
return i - 1;
}
int main() {
cout << pierwsza(9) << " " << pierwsza(29) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKYm9vbCBjenlfcGllcndzemEoaW50IGkpIHsKfQoKaW50IHBpZXJ3c3phKGludCBuKSB7CiAgICBpbnQgbnVtZXIgPSAwOwogICAgaW50IGkgPSAyOwogICAgd2hpbGUgKG51bWVyICE9IG4pIHsKICAgICAgICAgIGlmIChjenlfcGllcndzemEoaSkpIG51bWVyICs9IDE7CiAgICAgICAgICBpICs9IDE7Cn0KcmV0dXJuIGkgLSAxOwp9CgppbnQgbWFpbigpIHsKICAgIAogICAgY291dCA8PCBwaWVyd3N6YSg5KSA8PCAiICIgPDwgcGllcndzemEoMjkpIDw8IGVuZGw7CiAgICByZXR1cm4gMDsKfQ==