Binomial coefficients 3#320

Binomial coefficients 3

1 segundo
128 megabytes
Difícil (≈1650)

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

Entrada

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

Salida

Print the required integer without leading zeros.

Ejemplos

Ejemplo 1

Loading
Loading