#include <bits/stdc++.h>
using namespace std;
int t, n;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    vector<int> v;
    int cur = 1;
    while (cur <= n) {
      v.push_back(cur);
      n -= cur;
      cur *= 2;
    }
    if (n && n > v.back())
      v.push_back(n);
    else if (n) {
      n += v.back();
      v.pop_back();
      v.push_back(n / 2), v.push_back(n - n / 2);
    }
    cout << v.size() - 1 << "\n";
    for (int i = 1; i < v.size(); i++) cout << v[i] - v[i - 1] << " ";
    cout << "\n";
  }
  return 0;
}
