#include <bits/stdc++.h>
using namespace std;
signed long long n, t, k, x;
set<signed long long> v;
vector<signed long long> ans;
string str;
vector<signed long long> ans2;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; i *= 2) {
      ans.push_back(i);
      n -= i;
    }
    if (n > 0) {
      ans.push_back(n);
      sort(ans.begin(), ans.end());
    }
    cout << ans.size() - 1 << "\n";
    for (int i = 1; i < ans.size(); i++) {
      cout << ans[i] - ans[i - 1] << " ";
    }
    cout << "\n";
    ans.clear();
  }
}
