#include<bits/stdc++.h>
using namespace std;
int main(){
int a=101;
while(a<=200){
a++;
if(a%3==2&&a%5==3&&a%7==5)cout<<a;
}
}
/**************************************************************
Problem: 1017
User: binzicheng1
Language: C++
Result: Accepted
Time:11 ms
Memory:2072 kb
****************************************************************/