#include //#include //#include #include #include using namespace std; int main() { int64_t a, b; cin >> a >> b; for (int64_t i = a; i < b; i++) { if (i % 3 == 0) { cout << i << endl; } else { std::string str; str = std::to_string(i); if (str.find("3")) { cout << i << endl; } } } return 0; }