Xu1024's treasure chest
题号:NC200090
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 64 M,其他语言128 M
Special Judge, 64bit IO Format: %lld

题目描述

Xu1024 is a poor student. One day, Xu1024 found a treasure chest, but he didn't have the password. The treasure chest said: if you want to get the treasure of the pirate king, you need to find three numbers A, B, C that the pirate king likes, making A < B < C and B^2 - A^2 = C^2 - B^2.

Because Xu1024 has its own favorite number, he decided to take this number as A. now you need to help him find the other two numbers B and C to open the treasure chest. Because Xu1024 doesn't like the number which is too large, the absolute value of the numbers A whill not be greater than 100,000,000.What's more the absolute value of the numbers B and C you find shouldn't exceed 1,000,000,000.

Now I will tell you the number A. Please help Xu1024 find out the integer B and C satisfied that A < B < C and B^2 - A^2 = C^2 - B^2.

If no answer can be found, output "-1".

输入描述:

The first line contains an integer which is Xu1024's favorite number.

输出描述:

If the answer exists, ouput two integers: B and C seperated by a space.

If no answer can be found, output "-1".
示例1

输入

复制
7

输出

复制
13 17

说明

13^2-7^2=17^2-13^2=120
示例2

输入

复制
8599

输出

复制
50005 70193

说明

50005^2-8599^2=70193^2-50005^2=2426557224