Give a pair of integers (A, B) such that A^5-B^5 = X. It is guaranteed that there exists such a pair for the given integer X.
x = int(input())
for a in range(-119,120):
    for b in range(-120, 119):
        if a**5 - b**5 == x:
            print(a, b)
            break
x = int(input())
ans =[]
for a in range(-119,120):
    for b in range(-120, 119):
        if a**5 - b**5 == x:
            ans = [a,b]
            break

print(*ans)