IntermediateRating 1200
Largest Prime Gap
Among consecutive primes up to n, find the pair with the biggest difference. Print the two primes (the first such pair if there is a tie).
Input
One integer n (3 ≤ n ≤ 10⁶).
Output
Two integers.
Sample 1
Input
3
Output
2 3
Sample 2
Input
30
Output
23 29
Output appears here