A^B == B^A?

Solve the equation in the name of this problem.

Input

There are several cases. Each of them has a single real number as the smaller one of a and b in the equation on a separate line. You may assume it's no smaller than 1.1. Proceed until the end of file.

Output

For each case, print the other number on a single line. Keep 5 digits after decimal point. If no such number exists, print -1.

Sample Input

2
10
Sample Output

4.00000
-1

as

2个回答

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问