#include #include using namespace std; bool three_on(int _i){ string _str=to_string(_i); for(int i=0;i<_str.length();i++){ if(_str[i]=='3')return true; } return false; } int main() { int A,B; cin>>A>>B; for(int i=A;i<=B;i++){ if(i%3 == 0)cout<