• + 50 comments

    Looks good, but to avoid those repetitive input calls you could do something like:

    x, y, z, n = (int(input()) for _ in range(4))