#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,t,j;i<=b;++i){ t=i,j=0; three=false; while(t){ if(t%10==3){ three=true; break; } j=t%10; t/=10; } if(j%3==0||three)cout<