A positive integer is called a moderate number if the product of its digits is equal to their sum. You are given an integer . Find the -th moderate number. Moderate numbers are numbered starting from .
The only line contains a single integer (1 \leq n \leq 10^{18}).
Print the -th moderate number.
Example 1