CF1088A.Ehab and another construction problem

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Ehab and another construction problem

Given an integer xx, find 2 integers aa and bb such that:

  • 1a,bx1 \le a,b \le x
  • bb divides aa (aa is divisible by bb).
  • ab>xa \cdot b \gt x.
  • ab<x\frac{a}{b} \lt x.

Input

The only line contains the integer xx (1x100)(1 \le x \le 100).

Output

You should output two integers aa and bb, satisfying the given conditions, separated by a space. If no pair of integers satisfy the conditions above, print "-1" (without quotes).

Samples

10
6 3
1
-1

在线编程 IDE

建议全屏模式获得最佳体验