#include <bits/stdc++.h> using namespace std; int main(){ int n,i=1; cin>>n; while(i<=n){ if(i%2==0&&i%3!=0){ cout<<i<<endl; } i++; } } /************************************************************** Problem: 1699 User: 15159808820 Language: C++ Result: Accepted Time:11 ms Memory:2072 kb ****************************************************************/