#include<stdio.h>
int main()
{
int i = 1;
for (i = 1; i < 101; i++)
{
if (i % 3 == 0)
{
printf("%d\n", i);
}
}
return 0;
}