#P64E. Prime Segment

    ID: 6884 远端评测题 2000ms 64MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>*special problembrute force*1800

Prime Segment

本题没有可用的提交语言。

Description

Positive integer number x is called prime, if it has exactly two positive integer divisors. For example, 2, 3, 17, 97 are primes, but 1, 10, 120 are not.

You are given an integer number n, find the shortest segment [a, b], which contains n (i.e. a ≤ n ≤ b) and a, b are primes.

The only given line contains an integer number n (2 ≤ n ≤ 10000).

Print the space separated pair of the required numbers a, b.

Input

The only given line contains an integer number n (2 ≤ n ≤ 10000).

Output

Print the space separated pair of the required numbers a, b.

Samples

10

7 11

97

97 97