Buggy python submission (verdict: Time Limit Exceeded):
n = list(map(int, input().strip().split()))

for count in range(n[2]):
    if n[0] > 0:
        n[0]-=1
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1

print(str(n[0]) + " " + str(n[1]))

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Time Limit Exceeded):
n = list(map(int, input().strip().split()))
count=0

while count < n[2]:
    if n[0] > 0:
        n[0]-=1
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1

print(str(n[0]) + " " + str(n[1]))

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Runtime Error):
n = list(map(int, input().strip().split()))
count = 0
         
while count < n[2]:
	if n[0] > 0:
    	n[0]-=1   
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1
    else:
        break
 
print(n[0] + " " + n[1])

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Runtime Error):
n = list(map(int, input().strip().split()))
count = 0
         
while count == n[2]:
	if n[0] > 0:
    	n[0]-=1   
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1
    else:
        break
 
print(n[0] + " " + n[1])

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Runtime Error):
n = list(map(int, input().split())
count = 0
         
while count == n[2]:
	if n[0] > 0:
    	n[0]-=1   
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1
    else:
        break
 
print(n[0] n[1])

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Runtime Error):
n = list(map(long, input().split())
count = 0
         
while count == n[2]:
	if n[0] > 0:
    	n[0]-=1   
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1
    else:
        break
 
print(n[0] n[1])

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Runtime Error):
n = list(map(int, input().split())
count = 0
         
while count == n[2]:
	if n[0] > 0:
    	n[0]-=1   
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1
 
print(n[0] n[1])

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)

Buggy python submission (verdict: Runtime Error):
n = list(map(long, input().split())
count = 0
         
while count == n[2]:
	if n[0] > 0:
    	n[0]-=1   
        count+=1
    elif n[1] > 0:
        n[1]-=1
        count+=1

print(n[0] n[1])

         
         

Fixed submission:
A, B, K = map(int, input().split())

if A > K:
  print(A - K, B)
elif B - (K - A) > 0:
  print(0, B - (K - A))
else:
  print(0,0)