As we all know, Rikka is not good at math. Yuta, her boyfriend, is worried about it. Therefore, he sets an interesting math problem For Rikka to practice.
Given a non-negative integer x, Rikka is required to find three non-negative integers a,b,c that satisfy the following three conditions:
str(d) represents the decimal string representation of integer d. For example, str(0)="0", str(103)="103".
String s=s_1…s_n is a subsequence of string t=t_1…t_m if and only if there exists an index sequence 1≤i_1<i_2<⋯<i_n≤m satisfying ∀j∈\[1,n],s_j=t_i_j.
To avoid the case of no solution, Yuta assumes there is a special choice "−" for c where str(−) is equal to the empty string. Under this assumption, a=0,b=9,c=− becomes a valid solution of x=9.
Finding a valid solution is an easy task even for Rikka. Therefore, Rikka wants to increase the difficulty: Rikka wants you to find a valid solution (a,b,c) so that the length of str(c) is as large as possible.
The first line contains a single integer T (1≤T≤104), representing the number of test cases.
For each test case, the first line contains a single integer x (∣str(x)∣≤5000).
The input guarantees that ∑∣str(x)∣≤105.
For each test case, output three lines, each with a single integer, representing a,b,c respectively.
If there are multiple optimal solutions, you need only to output any of them.