Let the numbers and be written in the decimal numeral system. Define the distance between them as:
where a_i denotes the -th digit of , and b_i denotes the -th digit of . Digits are numbered from the least significant digit as . If is greater than the length of a number, the -th digit is considered zero.
Given three non-negative integers , , and , find numbers and such that the following conditions are satisfied:
A \leq X \leq B and A \leq Y \leq B.
is the smallest number for which the distance to is minimized.
is the largest number for which the distance to is maximized.
The input consists of three lines. Each line contains one integer: , , and (0 \leq A \leq B \leq 10^{18}, 0 \leq C \leq 10^{18}).
Output two lines. The first line should contain , and the second line should contain .
Example 1