Buggy python submission (verdict: Runtime Error):
def main():
    x = int(input())

    n = int(x ** .2)
    if n ** 5 == x:
        print(n, 0)
        return
    
    for i in range(1, 100):
        n = int((x - i ** 5) ** .2)
        if n ** 5 == (x - i ** 5):
            print(i, -n)
            return
    
    for i in range(1, 10000):
        fif = x + i ** 5
        n = int(fif ** .2)
        if n ** 5 == fif:
            print(fif, i)
            return

main()


Fixed submission:
def main():
    x = int(input())

    _n = int(x ** .2)
    for n in range(_n-2, _n+3):
        if n ** 5 == x:
            print(n, 0)
            return
    
    for i in range(1, 100):
        if x - i ** 5 < 0:
            continue
        _n = int((x - i ** 5) ** .2)
        for n in range(_n-2, _n+3):
            if n ** 5 == (x - i ** 5):
                print(i, -n)
                return
    
    for i in range(1, 1000):
        fif = x + i ** 5
        _n = int(fif ** .2)
        for n in range(_n-2, _n+3):
            if n ** 5 == fif:
                print(n, i)
                return

main()

Buggy python submission (verdict: Runtime Error):
def main():
    x = int(input())

    if (n := int(x ** .2)) ** 5 == x:
        print(n, 0)
        return
    
    for i in range(1, 10000):
        if (n := int((x - i ** 5) ** .2)) ** 5 == (x - i ** 5):
            print(i, -n)
            return
    
    v = (x / 5)

    for i in range(1, 10000):
        fif = x + i ** 5
        if (n := int(fif ** .2)) ** 5 == fif:
            print(fif, i)
            return

main()


Fixed submission:
def main():
    x = int(input())

    _n = int(x ** .2)
    for n in range(_n-2, _n+3):
        if n ** 5 == x:
            print(n, 0)
            return
    
    for i in range(1, 100):
        if x - i ** 5 < 0:
            continue
        _n = int((x - i ** 5) ** .2)
        for n in range(_n-2, _n+3):
            if n ** 5 == (x - i ** 5):
                print(i, -n)
                return
    
    for i in range(1, 1000):
        fif = x + i ** 5
        _n = int(fif ** .2)
        for n in range(_n-2, _n+3):
            if n ** 5 == fif:
                print(n, i)
                return

main()

Buggy python submission (verdict: Runtime Error):
def main():
    x = int(input())

    if (n := int(x ** .2)) ** 5 == x:
        print(n, 0)
        return
    
    for i in range(1, 10000):
        if (n := int((x - i ** 5) ** .2)) ** 5 == (x - i ** 5):
            print(i, -n)
            return
    
    v = (x / 5)

    for i in range(1, 10000):
        fif = x + i ** 5
        if (n := int(fif ** .2)) ** 5 == fif:
            print(fif, i)
            return

main()


Fixed submission:
def main():
    x = int(input())

    _n = int(x ** .2)
    for n in range(_n-2, _n+3):
        if n ** 5 == x:
            print(n, 0)
            return
    
    for i in range(1, 100):
        if x - i ** 5 < 0:
            continue
        _n = int((x - i ** 5) ** .2)
        for n in range(_n-2, _n+3):
            if n ** 5 == (x - i ** 5):
                print(i, -n)
                return
    
    for i in range(1, 1000):
        fif = x + i ** 5
        _n = int(fif ** .2)
        for n in range(_n-2, _n+3):
            if n ** 5 == fif:
                print(n, i)
                return

main()