#include using namespace std; int main(){ int a,b; cin >> a >> b; for(int i = a; i < b; i++){ if(i % 3 == 0) { cout << i << "\n"; continue; } int temp = i; while(temp !=0){ if(temp % 10 == 3){ cout << i << "\n"; break; } temp /=10; } } return 0; }