#include<bits/stdc++.h> using namespace std; int main(){ for(int i=1e8;i>=1;--i){ if(i%105==0){ cout<<i; break; }} return 0; }