#include using namespace std; int main(void) { int a,b,mul[100]; cin>>a>>b; for(int i=a; i<=b; i++) { if(i%3==0) { cout<