You are required to find a positive integer that satisfies the following requirements:
-
This number has six digits (we will denote this number as abcdef);
-
All digits are distinct;
-
The parity of the digits alternates;
-
The difference between adjacent digits is greater than 1;
-
The two-digit numbers ab, cd, and ef do not contain leading zeros;
-
ab is divisible by ef;
-
cd is divisible by ef.
Input
The only line of input contains 0. You may ignore it.
Output
Print a number that satisfies all the requirements described above.
Sample
Notes
The answer in the example is incorrect; it satisfies only 4 requirements.
Problem Author: Vadim Barinov
Problem Source: The 2026 ICPC Ural Qualification