#include<bits/stdc++.h> using namespace std; int main(){ for(int i=401;i<500;++i){ if(i%2==1&&i%5==3&&i%9==1){ cout<<i; break;}} return 0;}