qyliang/CodeNanoFix huggingface dataset:
Buggy code:
ABK = input().split()
A = int(ABK[0])
B = int(ABK[1])
K = int(ABK[2])
 
if (K >= A):
  print(str(K-A) + " " + str(K-A-B))
else:
  print(str(K-A) + " " + str(B))

Fixed code:
ABK = input().split()
A = int(ABK[0])
B = int(ABK[1])
K = int(ABK[2])

if (K >= A):
    K -= A
    B -= K
    A = 0

    if (B <= 0):
        B = 0
else:
    A -= K

print(str(A) + " " + str(B))
Buggy code:
A,B,K=map(int,input().split())
if A>K:
  A-=K
elif A+B>=K:
  A=0
  B-=K
else:
  A=0
  B=0
print(A,B)


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

if K <= A:
    print(A-K, B)
elif K <= A+B:
    print(0, A+B-K)
else:
    print(0, 0)
Buggy code:
A, B, K = map(int, input().split())

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

print('{0} {1}'.format(A, B))
	


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

if K >= A:
	K = K - A
	A = 0
else:
	A = A - K
	K = 0
if K >= B:
	B = 0
else:
	B = B - K

print('{0} {1}'.format(A, B))
Buggy code:
t,a,k = map(int, input().split())
T = max(t - k,0)
k -= T - t
A = max(a - k,0)
print(T,A)

Fixed code:
t,a,k = map(int, input().split())
T = max(t - k,0)
k-=t-T
A = max(a - k,0)
print(T,A)
Buggy code:
a,b,k = [int(i) for i in input().split()]
 
if a + b >= k:
  print(0,0)
elif k >= a:
  print(0, b - (k-a))
else:
  print(a-k,b)

Fixed code:
a,b,k = [int(i) for i in input().split()]
 
if a + b <= k:
  print(0,0)
elif k >= a:
  print(0, b - (k-a))
else:
  print(a-k,b)
Buggy code:
A, B, K = map(int, input().split())

if A > K:
    print(A-K, B)
if A < K < A + B:
    print("0", A+B-K)
if A + B < K:
    print("0 0")

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

if A > K:
    print(A-K, B)
if A <= K < A + B:
    print(0, A+B-K)
if A + B <= K:
    print(0, 0)
Buggy code:
A, B, K = map(int,input().split())

if A > K:
  A -= K
else:
  A = 0
  B = max(0, A + B - K)

print(A + " " + B)

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

if A >= K:
  A -= K
else:
  B = max(0, A + B - K)
  A = 0

print(str(A) + " " + str(B))
Buggy code:
a, b, k = map(int, input().split())

if a != 0 and a >= k:
    a -= k
elif a != 0 and a < k:
    k -= a
    a = 0
    if b != 0 and b >= k:
        b -= k
    elif b != 0 and b < k:
        b = 0
elif a=0:
    if b != 0 and b >= k:
        b -= k
    elif b != 0 and b < k:
        b = 0

print(a, b)


Fixed code:
a, b, k = map(int, input().split())

if a != 0 and a >= k:
    a -= k
elif a != 0 and a < k:
    k -= a
    a = 0
    if b != 0 and b >= k:
        b -= k
    elif b != 0 and b < k:
        b = 0
elif a == 0:
    if b != 0 and b >= k:
        b -= k
    elif b != 0 and b < k:
        b = 0

print(a, b)
Buggy code:
# import math
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np


a,b,k = map(int, input().split())
# n = int(input())
# p = list(map(int, input().split()))

if a < k and b < k-a:
    print(0,a+b-k)
elif a >= k:
    print(a-k,b)
else: print(0,0)

Fixed code:
# import math
# import bisect
# import heapq
# from copy import deepcopy
# from collections import deque
# from collections import Counter
# from itertools import accumulate
# from itertools import permutations
# import numpy as np


a,b,k = map(int, input().split())
# n = int(input())
# p = list(map(int, input().split()))

if a < k and b > k-a:
    print(0,a+b-k)
elif a >= k:
    print(a-k,b)
else: print(0,0)
Buggy code:
s=input().split()
a=int(s[0])
b=int(s[1])
k=int(s[2])
if a>=k:
    print((a-k)+" "+b)
else:
    if a+b>=k:
        print("0 "+b+a-k)
    else:
        print("0 0")



Fixed code:
s=input().split()
a=int(s[0])
b=int(s[1])
k=int(s[2])
if a>=k:
    print(str(a-k)+" "+str(b))
else:
    if a+b>=k:
        print("0 "+str(b+a-k))
    else:
        print("0 0")
Buggy code:
a,b,k=map(int,input().split())
cnt=0
if k>=(a+b):
  print("{} {}".format(0,0))
elif k>=a and k-a<=b:
  print("{} {}".format(0,b-k-a))
elif k<a:
  print("{} {}".format(a-k,b))

Fixed code:
a,b,k=map(int,input().split())
cnt=0
if k>=(a+b):
  print("{} {}".format(0,0))
elif k>=a and k-a<=b:
  print("{} {}".format(0,b-k+a))
elif k<a:
  print("{} {}".format(a-k,b))
Buggy code:
A,B,K = map(int,input().split())
if A+B <= K:
print(0,0)
elif A >= K:
  print(A-K,B)
else:
  print(0,B-K+A)


Fixed code:
A,B,K = map(int,input().split())
if A+B <= K:
  print(0,0)
elif A >= K:
  print(A-K,B)
else:
  print(0,B-K+A)
Buggy code:
import sys

lines = sys.stdin.readlines()

a, b, k = map(int, lines[0].split())

if a => k:
  a = 0
  k = k - a
  if b => k:
    b = 0
    k = k - b
else:
  a = a - k
  
print(a, b)

Fixed code:
import sys

lines = sys.stdin.readlines()

a, b, k = map(int, lines[0].split())

if a <= k:
    k = k - a
    a = 0
    if b <= k:
        k = k - b
        b = 0
    else:
        b = b - k
else:
    a = a - k

print(a, b)
Buggy code:
a､b､k=map(int,input().split())
m = a-k
if(0<=m):
  print(m,b)
else:
  l = 0-m
  n = b-l
  if(0<=n):
    print(0,n)
  else:
    print(0,0)

Fixed code:
a,b,k=map(int,input().split())
m = a-k
if(0<=m):
  print(m,b)
else:
  l = 0-m
  n = b-l
  if(0<=n):
    print(0,n)
  else:
    print(0,0)
Buggy code:
a, b, k  = map(int, input().split())
if a + b =<k:
    ansa=0
    ansb=0
elif k=>a:
    ansa=0
    ansb=a+b-k
else:
    ansa=a-k
    ansb=b

print(ansa + " "+ ansb)

Fixed code:
a, b, k  = map(int, input().split())
if a + b <=k:
    ansa=0
    ansb=0
elif k>=a:
    ansa=0
    ansb=a+b-k
else:
    ansa=a-k
    ansb=b

print(ansa, ansb)
Buggy code:
a,b,c=map(int,input().split())
if (a,b)==(0,0):
  print(a,b)
  exit(0)
if(a-k<0):
  print(0,max(k-abs(a-b))
else:
        print(a,b)

Fixed code:
a, b, k = map(int, input().split())
if (a, b) == (0, 0):
    print(0, 0)
    exit(0)
if a - k < 0:
    print(0, max(0, b - (k-a)))
else:
    print(a-k, b)
Buggy code:
a,b,k=map(int,input().split())
if k<=a:
	print(a-k,b)
elif k>=a and k<=b:
	print(a-a,b+a-k)
else: print(0 0)

Fixed code:
a,b,k = map(int,input().split())
if a >= k:
    print(a-k, b)
elif a+b>=k:
    print(0, b-(k-a))
else:
    print(0, 0)
Buggy code:
a,b,k = map(int,input().split())

a = max((a-k,0))
if k > a:
    b =	b - (k-a)
print(a,b)



Fixed code:
a,b,k = map(int,input().split())

if k > a:
    b = b - (k-a)
a = max((a-k,0))
b = max((b,0))
print(a,b)
Buggy code:
a,b,k = map(int, input().split())
if a>=k:
  print(a-k,b)
elif k>=a+b:
  print(0,0)
else:
  print(0,str(b-a+k))

Fixed code:
a,b,k = map(int, input().split())
if a>=k:
  print(a-k,b)
elif k>=a+b:
  print(0,0)
else:
  print(0,str(b-k+a))
Buggy code:
a,b,k =map(int,input().split())

if a <= k:
  print(k-a,b)
elif a<k<=a+b:
  print(0,b-(k-a))
else:
  print(0,0)

Fixed code:
a,b,k = map(int,input().split())
a = a - k
if(a < 0):
    b += a
    a = 0

if(b < 0):
    b = 0

print(a,b)
Buggy code:
a,b,k = map(int, input().split())
if (a > k):
    a = a-k
else:
    a = 0
    k = k-a
if (b > k):
    b = b-k
else:
    b = 0
print(a,b)


Fixed code:
a, b, k = map(int, input().split())

if a >= k:
    print(a-k, b)
else:
    print(0, max(0, b-(k-a)))
Buggy code:
a, b, k = map(int, input().split())

if a >= k:
    print(a - k, b)
else:
    print(0, max(b - k + a))

Fixed code:
a, b, k = map(int, input().split())

if a >= k:
    print(a - k, b)
else:
    print(0, max(0, b - k + a))
Buggy code:
a, b, k = map(int, input().split())
if a >= k:
  a = a-k
elif a + b >= k:
  a = 0
  b = b - (k-a)
else:
  a = 0
  b = 0
print(str(a)+" "+str(b))

Fixed code:
a, b, k = map(int, input().split())
if a >= k:
  a = a-k
elif a + b >= k:
  b = b - (k-a)
  a = 0
else:
  a = 0
  b = 0
print(str(a)+" "+str(b))
Buggy code:
	a,b,k = map(int, input().split())
	a=a-k
	b=b+a
	if a<0:a=0
	if b<0:b=0
	print(a,b)

Fixed code:
a,b,k=map(int,input().split())
if k<=a:
    print(a-k,b)
elif k-a<b:
    print(0,b-k+a)
else:print(0,0)
Buggy code:
a,b,k=map(int,input().split())
if a>k:
  print(a-k,b)
elif a-k<0 and b-k+a>0:
  print('0',b-k+a)
elif a-k<0 and b-k+a<0:
  print('0','0')

Fixed code:
a,b,k=map(int,input().split())
if a>=k:
    print(a-k,b)
elif a<k and a+b>=k:
    print(0,a+b-k)
elif a+b<k:
    print(0,0)
Buggy code:
A, B, K = map(int, input().split())
if A>=K:
    A = A - K
else:
    A = 0
    B = max(0,B-(K-A))
print(A, B, sep=' ')

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

if A >= K:
    print(A-K, B)
else:
    print(0, max(0, B-(K-A)))
Buggy code:
a,b,k=map(int,input().split())

a=max(a-k,0)
b=max(b-k,0)
print(a,b)

Fixed code:

a,b,k=map(int,input().split())

a1=max(a-k,0)
k=max(k-a,0)
b=max(b-k,0)
print(a1,b)
Buggy code:
a, b, k = [int(i) for i in input().split(" ")]
if a >= k:
    print("%d %d" % (a - k, b))
else: # a < k
    print("%d %d" % (0, max([b + (a - k), 0]))



Fixed code:
a, b, k = [int(i) for i in input().split(" ")]
if a >= k:
    print("%d %d" % (a - k, b))
else: # a < k
    print("%d %d" % (0, max([b + (a - k), 0])))
Buggy code:
a,b,k = map(int,input().split())
if a + b <= k:
    print(0,0)
elif a <= k:
    print(0, a+b-k)
else 
    print(a-k,0)

Fixed code:
a,b,k = map(int,input().split())
if a - k >= 0 :
    print(a - k,b)
elif a + b - k >= 0  :
    print(0,b-(k-a))
else:
    print(0,0)
Buggy code:
A, B, K = map(int, input().split())

for k in range(K):
  if A>0 and B!=0:
    A+=-1
  elif A==0 and B>0:
    B+=-1
  elif A==0 & B==0:
    break
print(A, B)




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

if K<=A:
  print(A-K, B)
elif A<K<=(A+B):
  print(0, B-(K-A))
else:
  print(0,0)
"""
for k in range(K):
  if A>0 and B!=0:
    A+=-1
  elif A==0 and B>0:
    B+=-1
  elif A==0 & B==0:
    break
print(A, B)
"""
Buggy code:
A, B, K = map(int, input().split())
print(max(0, K - A), max(0, A + B -K))

Fixed code:
A,B,K = map(int, input().split())
A,K = max(0,A-K),max(K-A,0)
B = max(0,B-K)
print(A,B)
Buggy code:
a,b,k = map(int,input().split())

if k < a:
    c = a-k
    print(str(c) + " " + str(b))
elif a + b > k:
    print(str(0) + " " + str(b))
else:
    print(str(0) + " " + str(0))


Fixed code:
a,b,k = map(int,input().split())

if k < a:
    c = a-k
    print(str(c) + " " + str(b))
elif a + b > k:
    d = b - (k - a)
    print(str(0) + " " + str(d))
else:
    print(str(0) + " " + str(0))
Buggy code:
a, b, k = map(int, input().split())

if a >= k:
    a-=k
    print(a, b)
else:
    a = 0
    k -= a
    b = max(0, (b - k))
    print(a, b)


Fixed code:
a,b, k = map(int, input().split())
if k >= a:
    k -= a
    a = 0
else:
    a-=k
    k = 0
    print(a,b)
    exit()
if k >= b:
    k -= b
    b = 0
else:
    b -= k
    k = 0
print(a,b)
Buggy code:
a,b,k=map(int,input().split())


if a-k<0:
    a=0
    fusai=a-k
    b=max(b+fusai,0)
    print(a,b)
else:
    print(a-k,b)


Fixed code:
a,b,k=map(int,input().split())


if a-k<0:
    fusai=a-k
    a=0
    b=max(b+fusai,0)
    print(a,b)
else:
    print(a-k,b)
Buggy code:
A, B, K = map(int, input().split())

print(max(0, A-K), max(B-(max(0, A-K)), 0))


Fixed code:
A,B,K=map(int,input().split())
print(max(0,A-K),max(0,B-(max(K-A, 0))))
Buggy code:
a,b,k=map(int,input().split())
print((a-k,b) if a>k else (0,b-k+a) if a+b>k else (0,0))

Fixed code:
a,b,k=map(int,input().split())
print(a-k if a>k else 0,b if a>k else a+b-k if a+b>k else 0)
Buggy code:
a,b,k=[int(x) for x in input().aplit()]

if(k-a>0):
  print(k-a,b)
elif a+b-k>0:
  print(0,a+b-k)
else:
  print(0,0)

Fixed code:
a,b,k=[int(x) for x in input().split()]

if(a-k>0):
  print(a-k,b)
elif a+b-k>0:
  print(0,a+b-k)
else:
  print(0,0)
Buggy code:
a = list(map(int,input().split()))
A = a[0]
B = a[1]
K = a[2]
taka = 0
aoki = 0
if K < B:
    taka = A
    aoki = B - K
elif K>=(A+B):
    pass
else:
    aoki = 0
    b = K - B
    taka = A - b
print(str(taka)+" "+str(aoki))

Fixed code:
a = list(map(int,input().split()))
A = a[0]
B = a[1]
K = a[2]
taka = A
aoki = B
if K < A:
    aoki = B
    taka = A - K
elif K>=(A+B):
    taka = 0
    aoki = 0
else:
    #A<=K<(A+B)
    taka = 0
    b = K - A
    aoki = B - b
print(str(taka)+" "+str(aoki))
Buggy code:
a, b, k = map(int,input().split())
if a <= k:
  print(0,(b - k + a), sep=" ")
elif a+b => k:
  print((a-k),b,sep=" ")
else:
  print(0, 0,sep+" ")

Fixed code:
a, b, k = map(int,input().split())
if a >= k:
  print(a-k, b)
elif k-a <= b:
  print(0, b-k+a)
else:
  print(0, 0)
Buggy code:
a,b,k=map(int,input().split())
if a>k:
  print(str(a-k) + " " + str(b))
else:
  if str(b-(a-k)) < 0:
    print("0 0")
  else:
  	print(str(0) +" " +str(b-(a-k)))

Fixed code:
a,b,k=map(int,input().split())
if a>k:
  print(str(a-k) + " " + str(b))
else:
  if b-(k-a) < 0:
    print("0 0")
  else:
  	print(str(0) +" " +str(b-(k-a)))
Buggy code:
# B
A, B, K = map(int, input().split())


A = A - min(A,K)
K = K - min(A,K)
B = B - min(B,K)

print(A, B)

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


A, K = A - min(A,K), K - min(A,K)
B = B - min(B,K)

print(A, B)
Buggy code:
A,B,K = map(int,input().split())

print( A+B-K if A+B > K else 0)

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

if A >= K:
    A = A - K
else:
    B = max(0,B-K+A)
    A = 0

print(A,B)
Buggy code:
a,b,k = map(int,input().split())
if a > k:
    a -= k


elif (a + b) <= k:
    a = 0
    b = 0

else:
    a = 0
    b -= (k - a)
    
print(str(a)+' '+str(b))


Fixed code:
a,b,k=map(int,input().split())
if k>=a+b:
  print(str(0)+' '+str(0))
elif k>=a:
  print(str(0)+' '+str(a+b-k))
else:
  print(str(a-k)+' '+str(b))
Buggy code:
a,b,k=map(int,input().split())
print(a-k,b) if a>=k else print(0-b-k+a) if k<=a+b else print(0,0)

Fixed code:
a, b, k = map(int, input().split())

if a > k:
    a -= k
else:
    k -= a
    a = 0
    b = b - k if k < b else 0
print(a, b)
Buggy code:
A,B,K = input().split(" ")
A = int(A)
B = int(B)
K = int(K)

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

Fixed code:
A,B,K = input().split(" ")
A = int(A)
B = int(B)
K = int(K)

if K>=A:
  K -=A
  A = 0
  if K>=B:
    B = 0
  else:
    B -=K
else:
  A -=K
print(A,B)
Buggy code:
A,B,K = map(int,input().split())
T = A - K
O = 0
if T >= 0:
	print(T, 0)
	else:
      print(0,O-T)

Fixed code:
A,B,K = map(int,input().split())
T = A - K
O = B

if T >= 0:
    print(T, O)
elif O+T >=0:
    print(0,O+T)
else:
    print(0,0)
Buggy code:
def main():
    a, b, k = map(int, input().split())
    if k >= a+b:
        print(0, 0)
    elif a>k:
        print(a, b)
    else:
        print(k-a)
        b = b - (k - a)
        a = 0
        print(a, b)


# if __name__ == '__main__':
main()


Fixed code:
def main():
    a, b, k = map(int, input().split())
    if k >= a+b:
        print(0, 0)
    elif a>=k:
        print(a-k, b)
    else:
        b = b - (k - a)
        a = 0
        print(a, b)


# if __name__ == '__main__':
main()
Buggy code:
a, b, k =map(int, input().split())

if a <= k:
    print((a-k),b)
else:
    print(0,b-(k-a))


Fixed code:
a, b, k =map(int, input().split())

if a+b <= k:
    print(0, 0)
else:
    if a >= k:
        print((a-k),b)
    else:
        print(0,b-(k-a))
Buggy code:
inpt = input()

inpt = inpt.split(" ")
inpt = [int(i) for i in inpt]

A = inpt[0]
B = inpt[1]
K = inpt[2]



if A >= K:
  A = A - K
else:
  A = 0
  K = K - A
  B = max(0,B - K)

print(A,B)


Fixed code:
inpt = input()
 
inpt = inpt.split(" ")
inpt = [int(i) for i in inpt]
 
A = inpt[0]
B = inpt[1]
K = inpt[2]
 
if A >= K:
  A = A - K
else:
  K = K - A
  A = 0
  B = max(0,B - K)

print(A,B)
Buggy code:
a,b,k=map(int,input().split())
if a >= k:
  print(str(k-a) + " " + str(b))
else:
  k -= a
  print("0 " + str(max(0,k-b)))

Fixed code:
a,b,k=map(int,input().split())
if a >= k:
  print(str(a-k) + " " + str(b))
else:
  k -= a
  print("0 " + str(max(0,b-k)))
Buggy code:
STRI = input()
DICT = STRI.split()
A=int(DICT[0])
B=int(DICT[1])
K=int(DICT[2])

cA = A
cB = B

if A+B <= K:
    print("0 0")
else:
    if A >= K:
        if A == K:
            cA = 0
        elif A > K:
            cA = A - K
    else:
        cA = 0
        if A+B < K:
            cA = 0
            cB = 0
        else:
            cB = B - (K - A)

print(cA,cB)

Fixed code:
STRI = input()
DICT = STRI.split()
A=int(DICT[0])
B=int(DICT[1])
K=int(DICT[2])

cA = A
cB = B

if A+B <= K:
    cA = 0
    cB = 0
else:
    if A >= K:
        if A == K:
            cA = 0
        elif A > K:
            cA = A - K
    else:
        cA = 0
        if A+B <= K:
            cA = 0
            cB = 0
        else:
            cB = B - (K - A)

print(cA,cB)
Buggy code:
a,b,k = map(int,input().split())
if k > a:
    print(0,a+b-k)
elif　k > a+b:
  print(0,0)
else:
print(a-k,b)

Fixed code:
a,b,k=map(int,input().split())

if k<=a:
 print(a-k,b)
elif k<=a+b:
 print(0,b-(k-a))
else:
 print(0,0)
Buggy code:
A,B=map(int,input().Split())
K=int(input())

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

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

if K >= A + B:
    A = 0
    B = 0

elif K >= A:
    B -= K - A
    A = 0

else:
    A -= K

print(A, B)
Buggy code:
def main():
    a,b,k = map(int,input().split())
    if a >= k:
        a-=k
    else:
        b -= (k - a)
        a = 0
        if b < 0:
            b = 0
    print(str(A)+" "+str(B))
main()

Fixed code:
def main():
    a,b,k = map(int,input().split())
    if a >= k:
        a-=k
    else:
        b -= (k - a)
        a = 0
        if b < 0:
            b = 0
    print(str(a)+" "+str(b))
main()
Buggy code:
a,b,k=(map(int, input().split()))

if a>k:
  print(a +b-k)
else:
  if a+b>k:
    print(a+b-k)
  else:
    print(0)

Fixed code:
a, b, k = map(int, input().split(" "))
 
if a >= k:
  a -= k
else:
  a -= k
  b += a
  if b < 0:
    b = 0
  a = 0
 
print(a, b)
Buggy code:
a,b,k=map(int,input().split())
if a>=k:
  print(a-k,b)
elif:
  print(0,max(b+a-k,0))

Fixed code:
a,b,k=map(int,input().split())
if a>=k:
  print(a-k,b)
else:
  print(0,max(b+a-k,0))
Buggy code:
a,b,k=map(int,input().split())
if a>=k:
  a=0
  if b>=k-a:
    b=0
  else:
    b=b-k+a
else:
  a=a-k

Fixed code:
a,b,k=map(int,input().split())

if a>=k:
    print(a-k,b)

elif a+b>=k>a:
    print(0,a+b-k)

else:
    print(0,0)
Buggy code:
a,b,k=map(int,input().split())
if a>=k:
  a=0
  if b>=k-a:
    b=0
  else:
    b=b-k+a
else:
  a=a-k
print(str(a)+" "+str(b))

Fixed code:
a,b,k = map(int,input().split())
if k >= a:
    k -= a
    a = 0
    if k >= b:
        b = 0
    else:
        b -= k
else:
    a -= k
print(str(a) + " " + str(b))
Buggy code:
a, b, k = map(int, input().split())

if a > k:
  print(a-k, b)
else:
  if a+b > k:
    print(0, b-a-k+1)
  else:
    print(0,0)

Fixed code:
a, b, k = map(int, input().split())

if a>=k:
    print(a-k, b)
elif a+b>=k:
    print(0, b-k+a)
else:
    print(0, 0)
Buggy code:
A, B, K = map(int, input().split())
print(A-K, B) if A>=K else print(0, B-(K-A)) if K<=A+B else print(0,0) if K>A+B

Fixed code:
A, B, K = map(int, input().split())
print(A-K, B) if A>=K else print(0, B-(K-A)) if K<=A+B else print(0, 0)
Buggy code:
A,B,K = map(int, input().split())

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

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

if A>=K:
    print(A-K, B)
elif B>=K-A:
    print(0, B-K+A)
else:
    print(0,0)
Buggy code:
from sys import exit
a, b, k = map(int, input().split(" "))

a -= k
if (a+b) <= k:
    print(0,0)
    exit()

if a <= 0:
    b += a
    a = 0
print(a, b)

Fixed code:
from sys import exit
a, b, k = map(int, input().split(" "))


if (a+b) <= k:
    print(0,0)
    exit()
    
a -= k

if a <= 0:
    b += a
    a = 0
print(a, b)
Buggy code:
a,b,k=map(int,input().split())
if k>=0 and k <=a:
  print(a-k,b)
elif k>a, k<=a+b:
  print(0, b-(k-a))
else:
  print(0,0)

Fixed code:
a,b,k=map(int,input().split())
if k>=0 and k <=a:
  print(a-k,b)
elif k>a and k<=a+b:
  print(0, b-(k-a))
else:
  print(0,0)
Buggy code:
A,B,K = map(int, input().split())

print(A-K+B) if K <= A else print(0) if (A+B) < K else print(A+B-K)


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

print(A-K, B) if K <= A else print(0,0) if (A+B) <= K else print(0, A+B-K)
Buggy code:
a,b,k=map(int, input().split())

if a>=k:
    x,y=a-k,b
elif a+b <= k:
    x,y=0,b-(k-a)
else:
    x,y=0,0
print('{} {}'.format(x,y))

Fixed code:
a,b,k=map(int, input().split())

if a>=k:
    x,y=a-k,b
elif a+b >= k:
    x,y=0,b-(k-a)
else:
    x,y=0,0
print('{} {}'.format(x,y))
Buggy code:
a,b,c=map(int,input().split())
print(a-c,b) if a>=c else print(0,b-(k-a)) if b>=k-a else print(0,0)

Fixed code:
a,b,c=map(int,input().split())
print(a-c,b) if a>=c else print(0,b-(c-a)) if b>=c-a else print(0,0)
Buggy code:
A,B,K = int(input()).split()

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

Fixed code:
A,B,K = map(int, input().split())
 
if A >= K:
  A = A-K
else:
  if B >= (K-A):
    B = B - (K-A)
    A = 0
  else:
    A = 0
    B = 0
    
print(A,B)
Buggy code:
a, b, k= map(int, input().split(" "))
if a > k:
    a -= k
else:
    a = 0
    k-=a
    if b > k:
        b-=k
    else:
        b = 0
print(a, b)

Fixed code:
a, b, k = map(int, input().split())
if a >= k:
  print(a - k, b)
else:
  print(0, max(0, b - (k - a)))
Buggy code:
A, B, K = map(int, input().split())

if A < K:
    A = 0
    K -= A
    if B <= K:
        B = 0
    else:
        B -= K
else:
    A -= K

print(A, B)

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

if A < K:
    K -= A
    A = 0
    if B < K:
        B = 0
    else:
        B -= K
else:
    A -= K

print(A, B)
Buggy code:
import os
import sys

def main():
    A , B , K = map(int , input().split())
    if K >= A :
        KK = K - A
        A = 0
        if KK >= B :
            B = 0
        else :
            B = B - KK
    else :
        A = A - K
    print (str(A) + " " + str(B))

Fixed code:
import os
import sys

def main():
    A , B , K = map(int , input().split())
    if K >= A :
        KK = K - A
        A = 0

        if KK >= B :
            B = 0
        else :
            B = B - KK
    else :
        A = A - K
    print (str(A) + " " + str(B))

if __name__ == '__main__':
    main()
Buggy code:
import sys
bbn=1000000007
	
#+++++
		
def main():
	a, b, k = map(int, input().split())
	ret_a=a
	ret_b=b
	if a >= k:
		print(str(a-k)+' '+str(b))
	elif a+b >= k:
		print('0 '+str(b-k))
	else:
		print('0 0')
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Fixed code:
import sys
bbn=1000000007
	
#+++++
		
def main():
	a, b, k = map(int, input().split())
	ret_a=a
	ret_b=b
	if a >= k:
		print(str(a-k)+' '+str(b))
	elif a+b >= k:
		print('0 '+str(a+b-k))
	else:
		print('0 0')
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)
Buggy code:
A, B, K = map(int, input().split())

if A <= K:
    print(0, max(B - (K - A), 0)
else:
    print(A - K, B)


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

if A <= K:
    print(0, max(B - (K - A), 0))
else:
    print(A - K, B)
Buggy code:
[a0,b0,k]=input().split()
if a0>k:
	ak=a0-k
    bk=b0
else: 
	ak=0
  	bk=b0-(k-a0)

if bk<0:
  bk=0

print(ak,bk)
  
  
    
  


Fixed code:
[a0,b0,k]=input().split()
a0=int(a0)
b0=int(b0)
k =int(k)
if a0>k:
    ak=a0-k
    bk=b0
else:
    ak=0
    bk=b0-(k-a0)

if bk<0:
    bk=0
    
print(ak,bk)
Buggy code:
a, b, k = map(int, input().split())
if a+b < k:
  print('0 0')
elif a < k:
  print('{} {}'.format(0, a+b-k))
elif:
  print('{} {}'.format(a-k, b)) 


Fixed code:
a, b, k = map(int, input().split())
if a+b < k:
  print('0 0')
elif a < k:
  print('{} {}'.format(0, a+b-k))
else:
  print('{} {}'.format(a-k, b))
Buggy code:
A,B,K = (int(x) for x in input().split())

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

Fixed code:
A,B,K = (int(x) for x in input().split())

if A > K:
  print(A-K,B)
  
elif A+B>K:
  print(0,B-K+A)
else:
  print(0,0)
Buggy code:
a,b,k = map(int, input().split())

if a >= k:
    print(a-k,b)
elif k < a and a + b > k:
    print(0, b - k)
else:
    print(0, 0)

Fixed code:
a,b,k = map(int, input().split())

if a >= k:
    print(a-k,b)
elif k > a and a + b >= k:
    print(0, b - k + a)
else:
    print(0, 0)