#include <iostream> using namespace std; int main(){ int n; cin >> n; for(int b = 1;b<10000;b++) if(b%n==2) cout << b << endl; return 0; }