#include <bits/stdc++.h>
using namespace std;
const long long MX = 303030;
const long long INF = 9e18;
long long b[33];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  b[0] = 1;
  for (int i = 1; i <= 32; i++) {
    b[i] = b[i - 1] * 2;
  }
  while (t--) {
    long long n;
    cin >> n;
    long long idx = 0;
    long long d[55] = {0};
    vector<long long> v;
    while (n >= b[idx]) {
      n -= b[idx];
      idx++;
      v.push_back(b[idx] / 2);
    }
    if (n > 0) {
      v.push_back(n);
    }
    long long sz = v.size();
    sort(v.begin(), v.end());
    cout << sz - 1 << "\n";
    for (int i = 1; i < sz; i++) {
      cout << v[i] - v[i - 1] << " ";
    }
    cout << "\n";
  }
}
