#include using namespace std; typedef pair Pair; int P[500000]; vector Sol; int main() { int r, n; cin >> n; for(int i=1; i> r; if(r == 1) { P[i+1] = i; } } for(int i=n; i>=1; i--) { while(P[i]) i--; Sol.push_back(i); } reverse(Sol.begin(), Sol.end()); cout << 2 << " " << Sol.size() << " "; for(auto sol : Sol) cout << sol << " "; return 0; }