#include <iostream>
using namespace std;
signed long int limit;
signed long int count = 1;
signed long int curNum = 3;
// Declaration of checkprime() function
bool checkprime(int){return true;}
int main(){
cin >> limit;
do{
if(checkprime(curNum) == true){
count++;
}
curNum += 2;
} while(count < limit);
return 0;
}