Problem: You are given three integers , and .
Find two positive integers and (, ) such that:
- the decimal representation of without leading zeroes consists of digits;
- the decimal representation of without leading zeroes consists of digits;
- the decimal representation of without leading zeroes consists of digits.
denotes the greatest common divisor (GCD) of integers and .
Output and . If there are multiple answers, output any of them.
Input Format: The first line contains a single integer () — the number of testcases.
Each of the next lines contains three integers , and (, ) — the required lengths of the numbers.
It can be shown that the answer exists for all testcases under the given constraints.
Additional constraint on the input: all testcases are different.
Output Format: For each testcase print two positive integers — and (, ) such that
- the decimal representation of without leading zeroes consists of digits;
- the decimal representation of without leading zeroes consists of digits;
- the decimal representation of without leading zeroes consists of digits.
Note: In the example: