8VC Venture Cup 2017 - Elimination Round
A
PolandBall and Hypothesis
Codeforces
800
原题
←B →
翻译中…

PolandBall is a young, clever Ball. He is interested in prime numbers. He has stated a following hypothesis: "There exists such a positive integer n that for each positive integer m number n·m + 1 is a prime number".

翻译中…

Unfortunately, PolandBall is not experienced yet and doesn't know that his hypothesis is incorrect. Could you prove it wrong? Write a program that finds a counterexample for any $*n*$.

翻译中…

Input

翻译中…

The only number in the input is $*n*$ ($1 ≤ *n* ≤ 1000$) — number from the PolandBall's hypothesis.

翻译中…

Output

翻译中…

Output such $*m*$ that $*n*·*m* + 1$ is not a prime number. Your answer will be considered correct if you output any suitable $*m*$ such that $1 ≤ *m* ≤ 10^{3}$. It is guaranteed the the answer exists.

翻译中…

Note

翻译中…

A prime number (or a prime) is a natural number greater than $1$ that has no positive divisors other than $1$ and itself.

翻译中…

For the first sample testcase, $3·1 + 1 = 4$. We can output $1$.

翻译中…

In the second sample testcase, $4·1 + 1 = 5$. We cannot output $1$ because $5$ is prime. However, $*m* = 2$ is okay since $4·2 + 1 = 9$, which is not a prime number.

翻译中…

样例

Input #1
3
Output #1
1
InputCopy OutputCopy
Input #2
4
Output #2
2
InputCopy OutputCopy
题目信息
题号
755A
时间限制
2 s
内存限制
256 MB
标签
暴力
图论
数学
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。