#include using namespace std; typedef long long LL; LL a,b; int main(){ cin>>a>>b; for(LL i=a;i<=b;i++){ if(i%3==0){cout<