#include #include using namespace std; int main(void){ // Your code here! double A; double B; scanf("%lf %lf", &A, &B); char x[32]; for(double i = A; i <= B; i++){ if(fmod(i, 3) == 0){ printf("%.0f\n", i); }else{ snprintf(x, 32, "%.0f", i); for(int j = 0; j < sizeof(x); j++){ if(x[j] == '3'){ printf("%.0f\n", i); break; } } } } }