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