Codeforces Round 275 (Div. 2)
A
Counterexample
Codeforces
1100
原题
←B →
翻译中…

Your friend has recently learned about coprime numbers. A pair of numbers ${*a*, *b*}$ is called coprime if the maximum number that divides both $*a*$ and $*b*$ is equal to one.

翻译中…

Your friend often comes up with different statements. He has recently supposed that if the pair $(*a*, *b*)$ is coprime and the pair $(*b*, *c*)$ is coprime, then the pair $(*a*, *c*)$ is coprime.

翻译中…

You want to find a counterexample for your friend's statement. Therefore, your task is to find three distinct numbers $(*a*, *b*, *c*)$, for which the statement is false, and the numbers meet the condition $*l* ≤ *a* < *b* < *c* ≤ *r*$.

翻译中…

More specifically, you need to find three numbers $(*a*, *b*, *c*)$, such that $*l* ≤ *a* < *b* < *c* ≤ *r*$, pairs $(*a*, *b*)$ and $(*b*, *c*)$ are coprime, and pair $(*a*, *c*)$ is not coprime.

翻译中…

Input

翻译中…

The single line contains two positive space-separated integers $*l*$, $*r*$ ($1 ≤ *l* ≤ *r* ≤ 10^{18}$; $*r* - *l* ≤ 50$).

翻译中…

Output

翻译中…

Print three positive space-separated integers $*a*$, $*b*$, $*c*$ — three distinct numbers $(*a*, *b*, *c*)$ that form the counterexample. If there are several solutions, you are allowed to print any of them. The numbers must be printed in ascending order.

翻译中…

If the counterexample does not exist, print the single number -1.

翻译中…

Note

翻译中…

In the first sample pair $(2, 4)$ is not coprime and pairs $(2, 3)$ and $(3, 4)$ are.

翻译中…

In the second sample you cannot form a group of three distinct integers, so the answer is -1.

翻译中…

In the third sample it is easy to see that numbers $900000000000000009$ and $900000000000000021$ are divisible by three.

翻译中…

样例

Input #1
2 4
Output #1
2 3 4
InputCopy OutputCopy
Input #2
10 11
Output #2
-1
InputCopy OutputCopy
Input #3
900000000000000009 900000000000000029
Output #3
900000000000000009 900000000000000010 900000000000000021
InputCopy OutputCopy
题目信息
题号
483A
时间限制
1 s
内存限制
256 MB
标签
暴力
模拟
数学
数论

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