eolymp
bolt
Try our new interface for solving problems
Problems

An ordinary boy

An ordinary boy

Petya is an ordinary boy. Each time before the beginning of each academic year, he has a desire to take up his mind. And this year he did not retreat from his goal immediately after the beginning of his studies. Attentively listening to the teacher and doing all the homework, he became the best student in the class.

The teacher noticed the Peter's success and gave him the most difficult version of the math exam. Almost all the tasks the boy solved during the lesson, but with one he failed.

Given positive integer x. Find such number yx that has no less than 100 divisors. The number y must be greater than x no more than for 1%, that is, inequality xy1.01x must hold.

Help Petya to solve this difficult task.

Input

One positive integer x (1x1016).

Output

If there is no suitable number, print -1, otherwise print any suitable number.

Warning

Number 510510 has exactly 128 divisors.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
Output example #1
-1
Input example #2
510000
Output example #2
510510
Source 2016 XVII All-Russia team school programming olympiad, December 11, Problem I