#include <iostream>
using namespace std;
int main()
{
for (int i=9; i<=36; i++)
if(i%3==0 && i&4!=0)
cout<<i<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
for (int i=9; i<=36; i++)
if(i%3==0 && i&4!=0)
cout<<i<<endl;
return 0;
}