#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    long long n, idx = 0;
    cin >> n;
    vector<long long> v;
    while (n >= (1 << idx)) {
      n -= (1 << idx);
      v.push_back(1 << idx);
      idx++;
    }
    if (n) v.push_back(n);
    sort(v.begin(), v.end());
    cout << v.size() - 1 << endl;
    for (int i = 0; i < v.size() - 1; i++) {
      cout << v[i + 1] - v[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
