#include<bits/stdc++.h>
using namespace std;
int main()
{
int i=101;
while(i<=199){
   if(i%3==2 && i%5==3 && i%7==5){
     cout<<i<<endl:
   }   i++;
}     
	return 0;
}

/**************************************************************
	Problem: 1017
	User: czr
	Language: C++
	Result: Compile Error
****************************************************************/