Binomial coefficients 3#320

Binomial coefficients 3

1 second
128 megabytes
Hard

You are given a positive integer . Find the smallest positive integer for which there exists such that C(n, k) = x.

Input

The first line contains the positive integer x \leq 10^{100}.

Output

Print the required integer without leading zeros.

Examples

Example 1

Loading
Loading