You are given three strings named as , , and . Here, the length of the strings and is equal. All strings contain lowercase English letters. The string and contain the following properties:
For example:
You are given two strings:
Here, the character is equivalent to the character , character is equivalent to the character , and character is equivalent to the character . According to the third property, the character is also equivalent to the character .
You can replace any character of string with its any equivalent character. By replacing any character of the string with its equivalent characters, you can construct multiple new strings. Your task is to print the lexicographically smallest string out of all possible new strings that you can construct.
Note: If the first character of is smaller than the first character of , then the lexicographical order is an order relation where string is smaller than string . If they are equivalent, the second character is checked and so on.
Input format
Output format
Print the lexicographically smallest string.
Constraints
length of strings
length of string = length of string
All the strings consist of lowercase English letters.
In string , you can replace with and with to find the lexicographically smallest string.
From string and ,
is equivalent to
is equivalent to
is equivalent to