Terusky#7111

Terusky

0.1 seconds
64 megabytes
Very easy

Ancient civilizations often used letters to represent numbers.

In the Roman numeral system, letters were used: C, D, I, L, M, V, and X, allowing them to write numbers from to .

The Etruscans, neighbors of the Romans, also used seven letters: A, E, I, J, O, U, and Y. This system enabled them to represent numbers from to . Each number was written as a string of seven letters, with each letter used exactly once. The list of all such strings is sorted alphabetically, and the position of a string in this list is the number it represents. For example: AEIJOUY = 1, AEIJOYU = 2, AEIJUOY = 3, and YUOJIEA = 5040.

Write a program to determine how the Etruscans would have represented a given number.

Input

The input contains a natural number (1 \le X \le 5040).

Output

Output a string of seven characters: the Etruscan representation of the number .

Examples

Example 1

Loading
Loading