#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; int main(){ ll a,b; cin >> a >> b; for(int i = a;i <= b;i++){ bool now = false; if(i % 3 == 0)now = true; string s = to_string(i); for(int j = 0;j < (int)s.size();j++){ if(s[j] == '3')now = true; } if(now)cout << now << endl; } }