Admission to Exam#5884

Admission to Exam

2 seconds
64 megabytes
Very easy

Last semester, students from the Faculty of Mechanics and Mathematics at the fictional university had to take an exam in network technologies. professors teaching the subject agreed on the following arrangement: during the semester, there would be N^2 lab assignments. The first professor would conduct labs numbered , N+1, 2N+1, ..., N^2-N+1; the second professor — labs numbered , N+2, 2N+2, ..., N^2-N+2, and so on. The -th professor would conduct labs numbered , , , ..., N^2. The professors also recalled that in recent years, lazy students had been skipping many lab assignments, leading to poor exam scores. Therefore, they decided that a student would be allowed to take the exam only if they've attended at least one lab for each professor.

students, living in the same dorm room, did not know how many labs would be held during the semester or how many professors taught them. Each student had a different attitude towards study: the first student attended all labs throughout the semester, the second attended only labs with numbers divisible by two, the third only those divisible by three, and so on. After all lab assignments were completed, it was found that only of these students were allowed to take the exam.

Input

An integer (1 \leq K \leq 2 \cdot 10^9).

Output

Print the minimal possible satisfying the problem's conditions. If there is no such for which exactly students are admitted to the exam, print .

Examples

Example 1

Loading
Loading