Codeforces Round 411 (Div. 2)
A
Fake NP
Codeforces
1000
原题
←B →
翻译中…

Tavak and Seyyed are good friends. Seyyed is very funny and he told Tavak to solve the following problem instead of longest-path.

翻译中…

You are given $*l*$ and $*r*$. For all integers from $*l*$ to $*r*$, inclusive, we wrote down all of their integer divisors except $1$. Find the integer that we wrote down the maximum number of times.

翻译中…

Solve the problem to show that it's not a NP problem.

翻译中…

Input

翻译中…

The first line contains two integers $*l*$ and $*r*$ ($2 ≤ *l* ≤ *r* ≤ 10^{9}$).

翻译中…

Output

翻译中…

Print single integer, the integer that appears maximum number of times in the divisors.

翻译中…

If there are multiple answers, print any of them.

翻译中…

Note

翻译中…

The first example: from $19$ to $29$ these numbers are divisible by $2$: ${20, 22, 24, 26, 28}$.

翻译中…

The second example: from $3$ to $6$ these numbers are divisible by $3$: ${3, 6}$.

翻译中…

样例

Input #1
19 29
Output #1
2
InputCopy OutputCopy
Input #2
3 6
Output #2
3
InputCopy OutputCopy
题目信息
题号
805A
时间限制
1 s
内存限制
256 MB
标签
贪心
数学

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