#include<iostream> #include<cstdio> using namespace std; int main(void) { int n,i; cin >> n; for(i=2;i<10000;i++) { if(i%n==2) printf("%d\n",i); else continue; } return 0; }