#include #include #include #include using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll a,b; cin >> a >> b; for(int i=a;i<=b;i++){ if(i%3==0){ cout << i << endl; } else{ int j=i; while(j){ if(j%10==3){ cout << i << endl; break; } else{ j/=10; } } } } }