#include <bits/stdc++.h>
using namespace std;
long long t, n, ans, l, r, m, z, mx;
string s;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    ans = log2(n);
    cout << ans << endl;
    mx = 1;
    n--;
    for (int i = 1; i <= ans; i++) {
      l = mx, r = mx * 2;
      while (l <= r) {
        m = (l + r) / 2;
        if (((ans - i + 1) * m) <= n) {
          z = m;
          l = m + 1;
        } else
          r = m - 1;
      }
      cout << z - mx << " ";
      mx = z;
      n -= mx;
    }
    cout << endl;
  }
}
