Codeforces Round 525 (Div. 2)
翻译中…
Given an integer $x$, find 2 integers $a$ and $b$ such that:
翻译中…
$1 \le a,b \le x$$b$divides$a$($a$is divisible by$b$).$a \cdot b \gt x$.$\frac{a}{b} \lt x$.
翻译中…
Input
翻译中…
The only line contains the integer $x$ $(1 \le x \le 100)$.
翻译中…
Output
翻译中…
You should output two integers $a$ and $b$, satisfying the given conditions, separated by a space. If no pair of integers satisfy the conditions above, print "-1" (without quotes).
翻译中…
样例
Input #1
10
Output #1
6 3
InputCopy
OutputCopy
Input #2
1
Output #2
-1
InputCopy
OutputCopy
题目信息
标签
暴力
构造
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。