The sum of different divisors#1139

The sum of different divisors

1 segundo
64 megabytes
Media

Given a natural number , find the smallest natural number that cannot be represented as the sum of distinct natural divisors of .

Entrada

The input consists of a single line containing the natural number , which does not exceed 2 \cdot 10^{18}.

Salida

Output the required number to the output file.

Ejemplos

Ejemplo 1

Loading
Loading