Vasya has a younger brother, Petya, who is in first grade, and a sister, Tanya, who is in kindergarten. Tanya has just started learning about numbers and asked Petya to play a numbers game with her. Petya, who has learned a bit about computers from Vasya, asked him to write a special program for their number game.
Vasya decided to take up the challenge and wrote a program to compare non-negative numbers, not only in decimal, but in numeral systems of arbitrary base.
The first line contains a single positive integer — the base of the numeral system, not exceeding .
The second line contains the first number to be compared. The length of this line does not exceed characters.
The third line contains the second number to be compared. The length of this line also does not exceed characters.
In numeral systems with a base greater than , digits greater than are represented by uppercase Latin letters from (10) to (15). The numbers are guaranteed to be valid and to contain no leading zeros (i.e., a value equal to zero is given as the single character ).
Print the maximum of the two given numbers (in the same numeral system as provided).
Example 1