#include<bits/stdc++.h> using namespace std; int main(){ for(int c=1; c<=100; c++){ if(c%3==0) cout<<c<<endl; } return 0; }