Олимпиадный тренинг

Задача 38329. Comparisons


About three numbers (denoted a, b, c) all the results of comparing them with each other are known. It is required to arrange these numbers in ascending order.

Input
Three lines are entered. The first contains the result of comparing the numbers a and b with each other in the following format. The first character — always a, the third character — b (corresponding to small Latin letters), and between them is written one of the characters >, < or =. The second line contains the result of comparing a and c in the same format (the first character is always a, the third — c), and the third line — the result of comparing b and c (the first character is always b, the third — c). It is guaranteed that the input data is not inconsistent.

Imprint
Print the characters a, b, c in the order of their corresponding numbers — each next number must be greater than or equal to the previous one. If two numbers are equal, the corresponding variables can be output in any order. Characters must be displayed in one line without spaces or other separators.

Note
In the second example, cba's answer is also correct. Please note that if there are several answers — you don't need to print them all, your program should print exactly one answer.
 
Examples
# Input Output
1 a>b
a>c
b>c
cba
2 a=b
a>c
b>c
cab
cba