Buggy python submission (verdict: Time Limit Exceeded):
A,B,K = map(int, input().split())

takahashi_cookie = A
aoki_cookie = B
iteration = K

for i in range(0, K):
    if(1 <= takahashi_cookie):
        takahashi_cookie -= 1

    elif(1 <= aoki_cookie):
        aoki_cookie -= 1

    else:
        pass

print(str(takahashi_cookie) + ' ' + str(aoki_cookie))


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

takahashi_cookie = A
aoki_cookie = B
iteration = K

if 0 <= takahashi_cookie - iteration:
  takahashi_cookie -= iteration
 
elif 0 <= aoki_cookie + takahashi_cookie - iteration:
  aoki_cookie = aoki_cookie + takahashi_cookie - iteration
  takahashi_cookie = 0

else:
  takahashi_cookie = 0
  aoki_cookie = 0

print(str(takahashi_cookie) + ' ' + str(aoki_cookie))

Buggy python submission (verdict: Time Limit Exceeded):
A,B,K = map(int, input().split())     

takahashi_cookie = A
aoki_cookie = B
iteration = K

while(0 < iteration):
    if(1 <= takahashi_cookie):
        takahashi_cookie -= 1

    elif(1 <= aoki_cookie):
        aoki_cookie -= 1

    else:
        pass

    iteration -= 1

print(str(takahashi_cookie) + ' ' + str(aoki_cookie))


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

takahashi_cookie = A
aoki_cookie = B
iteration = K

if 0 <= takahashi_cookie - iteration:
  takahashi_cookie -= iteration
 
elif 0 <= aoki_cookie + takahashi_cookie - iteration:
  aoki_cookie = aoki_cookie + takahashi_cookie - iteration
  takahashi_cookie = 0

else:
  takahashi_cookie = 0
  aoki_cookie = 0

print(str(takahashi_cookie) + ' ' + str(aoki_cookie))

Buggy python submission (verdict: Runtime Error):
A,B,K = map(str, input().split())     

takahashi_cookie = A
aoki_cookie = B
iteration = K
     
while(0 < iteration):
    if(1 <= takahashi_cookie):
        takahashi_cookie -= 1
     
    elif(1 <= aoki_cookie):
        aoki_cookie -= 1
     
    else:
        pass
     
    iteration -= 1
     
    print(str(takahashi_cookie) + ' ' + str(aoki_cookie))
     A,B,KT = map(str, input().spl
          it())

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

takahashi_cookie = A
aoki_cookie = B
iteration = K

if 0 <= takahashi_cookie - iteration:
  takahashi_cookie -= iteration
 
elif 0 <= aoki_cookie + takahashi_cookie - iteration:
  aoki_cookie = aoki_cookie + takahashi_cookie - iteration
  takahashi_cookie = 0

else:
  takahashi_cookie = 0
  aoki_cookie = 0

print(str(takahashi_cookie) + ' ' + str(aoki_cookie))

Buggy python submission (verdict: Runtime Error):
import argparse

def make_parser():
    parser = argparse.ArgumentParser()

    parser.add_argument('A', type=int)
    parser.add_argument('B', type=int)
    parser.add_argument('K', type=int)

    args = parser.parse_args()

    return args

def main():
    args = make_parser()

    takahashi_cookie = args.A
    aoki_cookie = args.B
    iteration = args.K

    while(0 < iteration):
        if(1 <= takahashi_cookie):
            takahashi_cookie -= 1

        elif(1 <= aoki_cookie):
            aoki_cookie -= 1

        else:
            pass

        iteration -= 1

    print(str(takahashi_cookie) + ' ' + str(aoki_cookie))

if __name__ == "__main__":
    main()


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

takahashi_cookie = A
aoki_cookie = B
iteration = K

if 0 <= takahashi_cookie - iteration:
  takahashi_cookie -= iteration
 
elif 0 <= aoki_cookie + takahashi_cookie - iteration:
  aoki_cookie = aoki_cookie + takahashi_cookie - iteration
  takahashi_cookie = 0

else:
  takahashi_cookie = 0
  aoki_cookie = 0

print(str(takahashi_cookie) + ' ' + str(aoki_cookie))