#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); int a,b; cin>>a>>b; bool three; for(int i;a<=b;++a){ i=a; three=false; while(i){ if(i%10==3)three=true; i/=10; } if(three||a%3==0)cout<