Buggy python submission (verdict: Runtime Error):
def main():
    s = int(input())
    x = int(s**0.5//1)
    if s <= 10**9:
        print(0,0,1,0,0,s)
        exit()
    if s%2 != 0
        print(0,1,1,0,s//2+1,s//2+1)
        exit()
    for i,j in zip(range(x,0,-1),range(x,s+1)):
        if s%i ==0:
            x = i
            break
        elif s%j == 0:
            x = i
            break
    y = int(s/x)
    print(0,0,x,0,0,y)
if __name__ == '__main__':
    main()

Fixed submission:
S=int(input())
if S<10**18:
    x1,y1,x2,y2,x3,y3=0,0,(S//10**9+1),10**9-S%10**9,1,10**9
else:
    x1,y1,x2,y2,x3,y3=(0,0,10**9,1,0,10**9)
print(x1,y1,x2,y2,x3,y3)

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    s = int(input())
    x = int(s**0.5//1)
    if s <= 10**9:
        print(0,0,1,0,0,s)
        exit()
    for i,j in zip(range(x,0,-1),range(x,s+1)):
        if s%i ==0:
            x = i
            break
        elif s%j == 0:
            x = i
            break
    y = int(s/x)
    print(0,0,x,0,0,y)
if __name__ == '__main__':
    main()

Fixed submission:
S=int(input())
if S<10**18:
    x1,y1,x2,y2,x3,y3=0,0,(S//10**9+1),10**9-S%10**9,1,10**9
else:
    x1,y1,x2,y2,x3,y3=(0,0,10**9,1,0,10**9)
print(x1,y1,x2,y2,x3,y3)

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    s = int(input())
    x = int(s**0.5//1)
    if s <= 10**9:
        print(0,0,1,0,0,s)
        exit()
    for i,j in zip(range(x,0,-1),range(x,s+1)):
        if s%i ==0:
            x = i
            break
        elif s%j == 0:
            x = i
    y = int(s/x)
    print(0,0,x,0,0,y)
if __name__ == '__main__':
    main()

Fixed submission:
S=int(input())
if S<10**18:
    x1,y1,x2,y2,x3,y3=0,0,(S//10**9+1),10**9-S%10**9,1,10**9
else:
    x1,y1,x2,y2,x3,y3=(0,0,10**9,1,0,10**9)
print(x1,y1,x2,y2,x3,y3)

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    s = int(input())
    x = int(s**0.5//1)
    if s <= 10**9:
        print(0,0,1,0,0,s)
        exit()
    for i in range(x,0,-1):
        if s%i ==0:
            x = i
            break
    y = int(s/x)
    print(0,0,x,0,0,y)
if __name__ == '__main__':
    main()

Fixed submission:
S=int(input())
if S<10**18:
    x1,y1,x2,y2,x3,y3=0,0,(S//10**9+1),10**9-S%10**9,1,10**9
else:
    x1,y1,x2,y2,x3,y3=(0,0,10**9,1,0,10**9)
print(x1,y1,x2,y2,x3,y3)

Buggy python submission (verdict: Time Limit Exceeded):
import heapq as hq
def main():
    s = int(input())
    if s ==1:
        print(0,0,0,1,1,0)
        exit()
    else:
        prime = [2] + [i for i in range(3,s+1,2)]
        prime_number = []
        x = 1
        y = 1
        for i in prime:
            if i <= s**0.5:
                prime = [x for x in prime if (x == i or x%i != 0)]
            else:
                break
        for i in prime:
            while not s%i:
                prime_number.append(i)
                s /= i
        for i in range(len(prime_number)):
            if i%2:
                x *= prime_number[i]
            else:
                y *= prime_number[i]
        print(0,0,x,0,0,y)
if __name__ == '__main__':
    main()

Fixed submission:
S=int(input())
if S<10**18:
    x1,y1,x2,y2,x3,y3=0,0,(S//10**9+1),10**9-S%10**9,1,10**9
else:
    x1,y1,x2,y2,x3,y3=(0,0,10**9,1,0,10**9)
print(x1,y1,x2,y2,x3,y3)