#include<iostream> using namespace std; int main(){ int n; for(n=1;n<=100;n+=1) if(n%3==0) cout<<n<<" "; return 0; }