CSES - Sum of Four Squares
  • Time limit: 1.00 s
  • Memory limit: 512 MB

A well known result in number theory is that every non-negative integer can be represented as the sum of four squares of non-negative integers.

You are given a non-negative integer nn. Your task is to find four non-negative integers aa, bb, cc and dd such that n=a2+b2+c2+d2n = a^2 + b^2 + c^2 + d^2.

Input

The first line has an integer tt: the number of test cases.

Each of the next tt lines has an integer nn.

Output

For each test case, print four non-negative integers aa, bb, cc and dd that satisfy n=a2+b2+c2+d2n = a^2 + b^2 + c^2 + d^2.

Constraints

  • 1t10001 \le t \le 1000
  • 0n1070 \le n \le 10^7
  • the sum of all nn is at most 10710^7

Example

Input:

3
5
30
322266

Output:

2 1 0 0
1 2 3 4
314 159 265 358