#P1699A. The Third Three Number Problem
The Third Three Number Problem
Description
You are given a positive integer . Your task is to find any three integers , and () for which , or determine that there are no such integers.
Here denotes the bitwise XOR of and . For example, and .
Each test contains multiple test cases. The first line contains a single integer () — the number of test cases. The following lines contain the descriptions of the test cases.
The only line of each test case contains a single integer ().
For each test case, print any three integers , and () for which . If no such integers exist, print .
Input
Each test contains multiple test cases. The first line contains a single integer () — the number of test cases. The following lines contain the descriptions of the test cases.
The only line of each test case contains a single integer ().
Output
For each test case, print any three integers , and () for which . If no such integers exist, print .
Note
In the first test case, , , , so .
In the second test case, there are no solutions.
In the third test case, .