#include using namespace std; #define ll long long ll pow(ll a, ll b) { if(b==0) return 1; if(b%2==0) { ll t = pow(a, b/2); return t*t; } else { return a*pow(a, b-1); } } int main() { ll k; cin >> k; for(int n=2; n<=30; n++) { for(int a=2; a<=n; a++) { int b = n-a; if(pow(2, b)*a*(a-1)/2==k) { cout << n << endl; cout << "1"; for(int i=1; i