#include #include using namespace std; int main(){ int A,B; cin >> A >> B; for(int i=A; A<=B; A++){ if(i%3 == 0){ cout << i << endl; continue; } int tmp = i; while(tmp!=0){ if(tmp%10==3){ cout << i << endl; break; } tmp /= 10; } } return 0; }