Prime Protocol


In the kingdom of MAPS, the royal archives contain a sequence of scrolls numbered from XX to YY. The Prime Minister (literally a minister obsessed with prime numbers) has devised a new Prime Security Protocol to ensure the archives remain safe from spies.

The protocol states that for every window of exactly MM consecutive scrolls, there must be at least KK prime-numbered scrolls to ensure numerical purity. If a spy tries to extract knowledge from the archives, they will always encounter a sufficient number of prime scrolls in any section, dismantling their evil plans.

As the kingdom's Chief Mathematician, you must determine the smallest possible MM that satisfies this protocol. If there exists no valid MM, report 1-1 to the Prime Minister.

Input

A single line containing three integers XX, YY, KK.

Output

A single line containing one integer MM (if it exists) or 1-1.

Constraints

  • 1X,Y,K,1061 \leq X, Y, K, \leq 10^6
  • XYX \leq Y

Example 1

Input 1
2 4 2
Output 1
3

Example 2

Input 2
2 4 3
Output 2
-1

Example 3

Input 3
6 13 1
Output 3
4

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.