Problem: On the well-known testing system MathForces, a draw of n rating units is arranged. The rating will be distributed according to the following algorithm: if k participants take part in this event, then the n rating is evenly distributed between them and rounded to the nearest lower integer, At the end of the drawing, an unused rating may remain — it is not given to any of the participants.

For example, if n = 5 and k = 3, then each participant will recieve an 1 rating unit, and also 2 rating units will remain unused. If n = 5, and k = 6, then none of the participants will increase their rating.

Vasya participates in this rating draw but does not have information on the total number of participants in this event. Therefore, he wants to know what different values of the rating increment are possible to get as a result of this draw and asks you for help.

For example, if n=5, then the answer is equal to the sequence 0, 1, 2, 5. Each of the sequence values (and only them) can be obtained as ⌊ n/k ⌋ for some positive integer k (where ⌊ x ⌋ is the value of x rounded down): 0 = ⌊ 5/7 ⌋, 1 = ⌊ 5/5 ⌋, 2 = ⌊ 5/2 ⌋, 5 = ⌊ 5/1 ⌋.

Write a program that, for a given n, finds a sequence of all possible rating increments.

Input

The first line contains integer number t (1 ≤ t ≤ 10) — the number of test cases in the input. Then t test cases follow.

Each line contains an integer n (1 ≤ n ≤ 10^9) — the total number of the rating units being drawn.

Output

Output the answers for each of t test cases. Each answer should be contained in two lines.

In the first line print a single integer m — the number of different rating increment values that Vasya can get.

In the following line print m integers in ascending order — the values of possible rating increments.

Example

Input


4
5
11
1
3


Output


4
0 1 2 5 
6
0 1 2 3 5 11 
2
0 1 
3
0 1 3 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
clock_t tp = clock();
const long long mod = 1e9 + 7;
long long int power(long long int a, long long int b) {
  long long int ans = 1;
  a = a;
  while (b > 0) {
    if (b & 1) ans = (ans * a);
    b >>= 1;
    a = (a * a);
  }
  return ans;
}
long long int power1(long long int a, long long int b, long long int m = mod) {
  long long int ans = 1;
  a %= m;
  while (b > 0) {
    if (b & 1) ans = (ans * a) % m;
    b >>= 1;
    a = (a * a) % m;
  }
  return ans;
}
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long int ncr(long long int n, long long int r) {
  if (n < r) return 0;
  long long int p = 1, k = 1;
  if (n - r < r) r = n - r;
  if (r != 0) {
    while (r) {
      p *= n;
      k *= r;
      long long int g = gcd(p, k);
      p /= g;
      k /= g;
      n--;
      r--;
    }
  } else
    p = 1;
  return p;
}
long long int lcm(long long int a, long long int b) {
  return (a / gcd(a, b) * b);
}
bool compare_increasing(pair<long long int, long long int> l1,
                        pair<long long int, long long int> l2) {
  if (l1.first != l2.first)
    return (l1.first < l2.first);
  else
    return (l1.second < l2.second);
}
void swap(long long int &a, long long int &b) {
  long long int temp = a;
  a = b;
  b = temp;
}
bool compare(long long int a, long long int b) {
  long long int la = floor(log10(a)) + 1, lb = floor(log10(b)) + 1;
  if (la == lb) return a > b;
  while (la && lb) {
    long long int pa = (a % power(10, la)) / power(10, la - 1),
                  pb = (b % power(10, lb)) / power(10, lb - 1);
    if (pa > pb)
      return true;
    else if (pa < pb)
      return false;
    la--, lb--;
  }
  if (!la) {
    if ((b % power(10, lb)) / power(10, lb - 1)) return false;
    return true;
  }
  if (!lb) {
    if ((a % power(10, la)) / power(10, la - 1)) return true;
    return false;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int tt = 1;
  cin >> tt;
  while (tt--) {
    long long int n, i = 1;
    cin >> n;
    set<long long int> ma;
    ma.insert(0);
    while (i * i <= n) {
      ma.insert(i);
      ma.insert(n / i++);
    }
    cout << ma.size() << '\n';
    for (auto i : ma) cout << i << ' ';
    cout << '\n';
  }
  tp = clock() - tp;
  cerr << "**** (Execution : " << (double)(tp) / CLOCKS_PER_SEC << "s) ****\n";
  ;
  return 0;
}