#include using namespace std; int main() { int ans[10] = {7, 11, 13, 17, 19, 23, 29, 47, 59, 61}; int n; cin >> n; cout << ans[n-1] << endl; }