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.
import sys
X = int(input())

for a in range(-100, 100):
    for b in range(-100, 100):
        if a ** 5 - b ** 5 == X:
            print(a, b)
            sys.exit()

import sys
X = int(input())

for b in range(0, -1000, -1):
    for a in range(100, -1000, -1):
        if (a ** 5 - b ** 5) == X:
            print(a, b)
            sys.exit()

