#include <bits/stdc++.h> using namespace std; int main() { int h; cin>>h; for (int i=1; i<10000; i++) { if (i%h==2) printf("%d\n",i); } return 0; }