#include #define pii pair #define pb push_back #define mp make_pair #define ll long long using namespace std; int i, n, x, suma,a[110],sol; int main() { cin >> n; a[1]=1;a[2]=2; sol=2; suma=3; for(i = 3;; i++) { x = suma + 1; if(suma+suma+1>n) { a[++sol]=n-suma; break; } suma += x; a[++sol]=x; } cout<