#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, n, i2, i;
  long long a[100];
  cin >> t;
  while (t--) {
    cin >> n;
    a[0] = i2 = i = 1;
    for (i; i2 * 2 <= n; i++) a[i] = i2, i2 *= 2;
    n -= i2;
    for (long long j = 1; j < i; j++)
      if (n >= a[j]) {
        n -= a[j];
        a[j] *= 2;
      } else {
        a[j] += n;
        break;
      }
    cout << i - 1 << endl;
    for (long long j = 1; j < i; j++) cout << a[j] - a[j - 1] << " ";
    cout << endl;
  }
  return 0;
}
