Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1 = 0, 0
x2, y2, x3, y3 = 0, 0, 0, 0

while True:
    if s >= 10e9:
        for i in range(min(int(s**0.5), 10e9), 0, -1):
            if s % i == 0 and s / i <= 10e9:
                x2 = i
                y3 = s//i
                break
    else:
        for i in range(1, int(s**0.5) + 1):
            if s % i == 0 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i
                break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1 = 0, 0
x2, y2, x3, y3 = 0, 0, 0, 0

while True:
    for i in range(1, min(int(s**0.5), 10e9) + 1):
        if s % i == 0 and s / i <= 10e9:
            x2 = i
            y3 = s//i
            break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)

Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1 = 0, 0
x2, y2, x3, y3 = 0, 0, 0, 0

while True:
    if s >= 10e14:
        for i in range(min(int(s**0.5), 10e9), 0, -1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i
                y3 = s//i
                break
    else:
        for i in range(1, min(int(s**0.5), 10e9) + 1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i
                break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1 = 0, 0
x2, y2, x3, y3 = 0, 0, 0, 0

while True:
    if s >= 10e9:
        for i in range(min(int(s**0.5), 10e9), 0, -1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i
                y3 = s//i
                break
    else:
        for i in range(1, min(int(s**0.5), 10e9) + 1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i
                break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Runtime Error):
while True:
    if s >= 10e9:
        for i in range(min(int(s**0.5), 10e9), 0, -1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i
                y3 = s//i
                break
    else:
        for i in range(1, min(int(s**0.5), 10e9) + 1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i
                break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1 = 0, 0
x2, y2, x3, y3 = 0, 0, 0, 0

while True:
    if s >= 10e9:
        for i in range(int(s**0.5), 0, -1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i
                y3 = s//i
                break
    else:
        for i in range(1, int(s**0.5) + 1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i
                break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1 = 0, 0
x2, y2, x3, y3 = 0, 0, 0, 0

while True:
    for i in range(1, int(s**0.5) + 1):
        if s % i == 0 and i <= 10e9 and s / i <= 10e9:
            x2 = i
            y3 = s//i
            break

    if x2 == 0 and y3 == 0:
        y2 = -1
        x3 += 1
        s -= x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1, x2, y2, x3, y3 = 0, 0, 0, 0, 0, 0

while True:
    if s >= 10e9:
        for i in range(int(s**0.5), 0, -1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i
                y3 = s//i
                break
    else:
        for i in range(1, int(s**0.5) + 1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i
                break

    if x2 == 0 and y3 == 0:
        y2 = 1
        x3 += 1
        s += x3
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

x1, y1, x2, y2, x3, y3 = 0, 0, 0, 0, 0, 0

while True:
    if s >= 10e9:
        for i in range(int(s**0.5), 0, -1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i - y1
                break
    else:
        for i in range(1, int(s**0.5) + 1):
            if s % i == 0 and i <= 10e9 and s / i <= 10e9:
                x2 = i - x1
                y3 = s//i - y1
                break

    if x2 == 0 and y3 == 0:
        x1 += 1
        y1 += 1
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())
start = 1

x1, y1, x2, y2, x3, y3 = 0, 0, 0, 0, 0, 0

while True:
    if s >= 10e9:
        start = s//2

    for i in range(int(s**0.5), start-1, -1):
        if s % i == 0 and i <= 10e9 and s / i <= 10e9:
            x2 = i - x1
            y3 = s//i - y1
        break

    if x2 == 0 and y3 == 0:
        x1 += 1
        y1 += 1
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())
start = 1

x1, y1, x2, y2, x3, y3 = 0, 0, 0, 0, 0, 0

while True:
    if s >= 10e9:
        start = s//2

    for i in range(start, int(s**0.5)+1):
        if s % i == 0 and i <= 10e9 and s / i <= 10e9:
            x2 = i - x1
            y3 = s//i - y1
        break

    if x2 == 0 and y3 == 0:
        x1 += 1
        y1 += 1
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())
start = 1

x1, y1, x2, y2, x3, y3 = 0, 0, 0, 0, 0, 0

while True:
    if s >= 10e9:
        start = s//2

    for i in range(start, int(s**0.5)+1):
        if s % i == 0 and i <= 10e9 and s % i <= 10e9:
            x2 = i - x1
            y3 = s//i - y1
        break

    if x2 == 0 and y3 == 0:
        x1 += 1
        y1 += 1
        continue
    break

print(x1, y1, x2, y2, x3, y3)


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Runtime Error):
s = int(input())
start = 1

if s >= 10e9:
    start = s//2

for i in range(start, int(s**0.5)+1):
    if s % i == 0:
        if i <= 10e9 and s % i <= 10e9:
            x2 = i
            y3 = s//i
print("0 0 {} 0 0 {}".format(x2, y3))


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Runtime Error):
s = int(input())
start = 1

if s >= 10e9:
    start = s/2

for i in range(start, int(s**0.5)+1):
    if s % i == 0:
        if i <= 10e9 and s % i <= 10e9:
            x2 = i
            y3 = s//i
print("0 0 {} 0 0 {}".format(x2, y3))

Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())

for i in range(1, int(s**0.5)+1):
    if s % i == 0:
        if i <= 10e9 and s % i <= 10e9:
            x2 = i
            y3 = s//i
print("0 0 {} 0 0 {}".format(x2, y3))

Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)

Buggy python submission (verdict: Time Limit Exceeded):
s = int(input())


def make_divisors(n):
    divisors = []
    for i in range(1, int(n**0.5)+1):
        if n % i == 0:
            divisors.append(i)
            if i != n // i:
                divisors.append(n//i)

    # divisors.sort()
    return divisors


divisors = make_divisors(s)

for d in divisors:
    if d <= 10e9 and s/d <= 10e9:
        x2 = d
        y3 = s//d

print("0 0 {} 0 0 {}".format(x2, y3))


Fixed submission:
s = int(input())

e = 10**9
if s == e**2:
    print(0, 0, e, 1, 0, e)
else:
    y = s//e + 1
    x = y*e - s
    print(0, 0, e, 1, x, y)