Preparando MOJI

Ehab and another construction problem

1000ms 262144K

Description:

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>x$$$.
  • $$$\frac{a}{b}<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).

Sample Input:

10

Sample Output:

6 3

Sample Input:

1

Sample Output:

-1

Informação

Codeforces

Provedor Codeforces

Código CF1088A

Tags

brute forceconstructive algorithms

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 09:41:48

Relacionados

Nada ainda