#include int main(void) { int s, e; int i; scanf("%d%d", &s, &e); for(i = s;i <= e;i++){ if(i % 3 == 0){ printf("%d\n", i); } } return 0; }