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