Problem:


Score : 200 points

Problem Statement

Takahashi has A cookies, and Aoki has B cookies.
Takahashi will do the following action K times:

If Takahashi has one or more cookies, eat one of his cookies.

Otherwise, if Aoki has one or more cookies, eat one of Aoki's cookies.

If they both have no cookies, do nothing.

In the end, how many cookies will Takahashi and Aoki have, respectively?

Constraints

0 \leq A \leq 10^{12}

0 \leq B \leq 10^{12}

0 \leq K \leq 10^{12}

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B K

Output

Print the numbers of Takahashi's and Aoki's cookies after K actions.

Sample Input 1

2 3 3

Sample Output 1

0 2

Takahashi will do the following:

He has two cookies, so he eats one of them.

Now he has one cookie left, and he eats it.

Now he has no cookies left, but Aoki has three, so Takahashi eats one of them.

Thus, in the end, Takahashi will have 0 cookies, and Aoki will have 2.

Sample Input 2

500000000000 500000000000 1000000000000

Sample Output 2

0 0

Watch out for overflows.



Sample input:
2 3 3


Sample output:
0 2

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
	ll A, B, K;
	cin >> A >> B >> K;
	ll a, b;
	a = max(0LL, A - K);
	// A - a(枚)使った
	K -= (A - a);
	b = max(0LL, B - K);
	cout << a << " " << b << endl;
}

Submission status: Runtime Error

Solution code:
taka, aoki, times= map(int,input().split())
if taka + aoki > times:
    if taka < times:
        print(0,aoki - (times - taka))
    elif taka > times:
        print(taka - times, aoki)
    else:
        print(0,0)
elif taka = times:
    print(0,aoki)
else:
    print(0,0)

Submission status: Runtime Error

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

def check(A,B,K):
    if A > 0:
        if K-A >= 0:
            K = K-A
            A = 0
        else:
            A = A-K
            return (A,B)
    
    if B > 0:
        if B-K >= 0:
            return (A,B-K)
        else:
            return (A,0)

ans = check(A,B,K)
print(ans[0],ans[1])

Submission status: Runtime Error

Solution code:
A,B,K = [int(i) for i in input().split(" ")]

def check(A,B,K):
    if A > 0:
        if K-A >= 0:
            K = K-A
            A = 0
        else:
            A = A-K
            return (A,B)
    
    if B > 0:
        if B-K >= 0:
            return (A,B-K)
        else:
            return (A,0)

ans = check(A,B,K)
print(ans[0],ans[1])

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;
int main(){
  long long int A,B,K;
  cin >> A >> B >> K;
  if(A>=K){
    cout << A-K << B << endl;
    return 0;
  }
  else if(A+B-K>=0){
    cout << 0 << B-(K-A) << endl;
    return 0;
  }
  else {
    cout << 0 << 0 << endl;
    return 0;
  }
}

Submission status: Runtime Error

Solution code:
A, B, K = [int(x) for x in input().split(" ")]

if A >= K:
  print("{} {}".format(A-K, B))
elif A < K and A+B >= K:
  print("{} {}".format(0, (A-K/2)+(B-K/2))
else:
  print(0)

Submission status: Runtime Error

Solution code:
A, B, K = [int(x) for x in input().split(" ")]

if A >= K:
  print("{} {}".format(A-K, B))
elif A < K and A+B => K:
  print("{} {}".format(0, A+B-K))
else:
  print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution code:
S=list(map(int, input().split()))
if S[2] >= S[0]+S[1]:
  print(0,0)
else S[2] >= S[0]:
  print(0,S[1]+S[0]-S[2])
else:
  print(S[0]-S[2],S[1])

Submission status: Runtime Error

Solution code:
str = input().split()
a = int(str[0])
b = int(str[1])
k = int(str[2])

x = max(0,a-k)
if x == 0:
    y = b + a - k

print(x,y)

Submission status: Runtime Error

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

if A>K:
    i =A-K 
elif (A+B) > K:
    i =0
    j =(A+B)-K 
else:
    i =0
    j =0
print('{} {}'.format(i,j))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))

if(a[0] >= a[2]):
    a[0] = a[0] -a[2]
    a[2] = 0
     a[2] = a[2] - a[0]
elif(a[1] >= a[2]):
    a[0] = 0
    a[1] = a[1] -a[2]
else:
    a[1] = 0
print("%d %d"%(a[0],a[1]))

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))

if((a[0]+a[1]) == a[2]):
    print("0 0")

if((a[0]+a[1]) != a[2])
for i in range(0, a[2]):
    if(a[0] >= 1):
        a[0] -= 1

    elif(a[1] >= 1):
        a[1] -= 1

print("%d %d"%(a[0],a[1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b, k=map(int, input().split())
for i in range(k):
    if a>=1:
        a-=1
    elif b>=1:
        b-=1

print(str(a)+" "+str(b)

Submission status: Runtime Error

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

for i in range(0, K):
    if A > 0:
        A = A - 1
    elif B > 0:
        B = B - 1
    else:
        print(A, B)

print(A, B))

Submission status: Runtime Error

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

for i in range(0, K):
    if A > 0:
        A = A - 1
    elif B > 0:
        B = B - 1
    else:
        print(A, " ", B)

print(A, B))

Submission status: Runtime Error

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

for i in range(0, K):
    if A > 0:
        A = A - 1
    elif B > 0:
        B = B - 1
    else:
        print(A, " ", B)

print(A, " ", B))

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
K = int(input())

for i in range(0, K):
    if A > 0:
        A = A - 1
    elif B > 0:
        B = B - 1
    else:
        print(A, " ", B)

print(A, " ", B)

Submission status: Runtime Error

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

ans_a = max(0,a-k)

if( ans_a == 0):
    ans_b = max(0, b-(k-a))


print("{0} {1}".format(ans_a,ans_b))

Submission status: Runtime Error

Solution 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))

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution code:
A, B, K=input().split()
x= A-K
if x < 0:
  y= B + x
  A = 0
  if y < 0:
    y=0
  else:
    B = B + y
else:
  A = A - K

print("{} {}".format(A, B))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution 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]))

Submission status: Runtime Error

Solution code:
a,b,k = map(int ,input().split())
if a>=k:
    a=a-k
elif a<k:
    i=abs(a-k)
    a=0
b=max(0,(b-i))
print(a,b)

Submission status: Runtime Error

Solution code:
a,b,c = input().strip().split
a,b,c = [int(a), int(b), int(c)]

for i in range(c):
  if a > 0:
    a -= 1
  elif b > 0:
    b -= 1

print('{} {}'.format(a, b))

Submission status: Runtime Error

Solution code:
def resolve():
    inp = input().split()
    a = int(inp[0])
    b = int(inp[1])
    k = int(inp[2])

    if (a - k) <= 0 :
        k = k - a
        a = 0
    else:
        a = a - k
        k = 0

    if (b - k) <= 0:
        k = k - b
        b = 0
    else:
        b = b - k
        k = 0

    print(str(a) + ' ' + str(b))

    
if __name__ == "__main__":
    reslove()

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
print(f"{a - k} {b}" if a >= k else f"{0} {b - (k - a)}")

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
print(f"{a - k} {b}" if a >= k else f"0 {b - (k - a)}")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B,K = map(int, input().split())
for i in range(K):
    if(A > 0):
        A - 1
    elif:
        B - 1
print(A, B)

Submission status: Runtime Error

Solution code:
import sys
row = sys.stdin.readline
 
def read_ints(row):
    return list(map(int, row().split()))
  
A ,B ,K = read_ints(row)
 
result_A = 0 if A <= K else A-K
result_B = max(B -(K-A)) if A <= K else B
print(result_A,result_B)

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input())
print(max(a-k, 0), max(min(a+b-k, b), 0))

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline


x = int(input())

prime = [True] * (1000000)
prime[2] = True

def e_prime(x):
	i = 2
	flag = False
	while True:
		if prime[i]:
			if(flag==True):
				return i
			else:
				for j in range(i**2,len(prime),i):
					prime[j]=False
		i+=1
		if(i==x):flag=True

print(e_prime(x))

Submission status: Runtime Error

Solution code:
a,b,k = map(int, input().split())
if a <= K:
  a = 0
  k = k - a
  b -= k
  if b < 0:
    b = 0
  else:
    pass
else:
  a -= k
print(a, b)

Submission status: Runtime Error

Solution code:
a,b,k = list(map(int,input().split(" ")))

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

Submission status: Runtime Error

Solution code:
A, B, K = map(int, input().split())
quant = A + B

if quant - K <= 0:
    print('0 0')
else:
    RNT = A - K  # RemainNumTime
    a = max(RNT, 0)
    b = min(B + RNT, B)
    print(a + ' ' + b)

Submission status: Runtime Error

Solution code:
A, B, K = map(int, input().split())
quant = A + B

if quant - K <= 0:
    print('0 0')
else:
    RNT = A - K  # RemainNumTime
    a = max(RNT, 0)
    b = min(B + RNT, B)
    print(f'{a} {b}')

Submission status: Runtime Error

Solution code:
n=input()
c = int(n[0]) - int(n[2])
d=c+int(n[1])
if(c>0):
    print(c,n[1])
elif(d>0):
    print(0,d)
else:
    print(0,0)

Submission status: Runtime Error

Solution code:
a,b,k = input().split(None, 3)
A = int(a)
B = int(b)
K = int(k)
Ta = 0
Ao = 0

if A >= K:
  Ta = A-k
  Ao = B

elif A+B >= K > A :
  Ta = 0
  Ao = B - (K-A)

else:
  Ta = 0
  Ao = 0

print(Ta,Ao)

Submission status: Runtime Error

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

A2=A-K
if A2<0:
    B2=B+A2
    A2=0
print(A2, B2)

Submission status: Runtime Error

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

a = 0
b = 0


    if A >= K :
        a = A-K
    elif  (A + B) > K:
        a = 0
        b = B-(K-A)
    elif  (A + B)  < K:
        a = 0
        b = 0


print(a,b,end='')

Submission status: Runtime Error

Solution code:
A,B,K=map(int,input().split())
ans=[0]*2

if A>=K:
  ans[0]=max(ans,A-K)
  ans[1]=B
else:
  ans[1]=B-(K-A)

print(ans[0],ans[1])

Submission status: Runtime Error

Solution code:
A,B,K=input().split(" ")
if K<=A:
  A -= K
  print(str(A)+" "+str(B))
else:
  A = 0
  B -= K - A
  print(str(A)+" "+str(B))

Submission status: Runtime Error

Solution code:
A,B,K=input().split(" ")
if K<=A:
  A -= K
  print(str(A),str(B))
else:
  A = 0
  B -= K - A
  print(str(A),str(B))

Submission status: Runtime Error

Solution 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+" "+(a+b-k))

Submission status: Runtime Error

Solution 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,k-(b-a))
else:
        print(a-k,b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution 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(0,k-(b-a))
else:
        print(a-k,b)

Submission status: Runtime Error

Solution 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(0,k-(b-a)))
else:
        print(a,b)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
if (a,b)==(0,0):
  print(a,b)
  exit(0)
if(a-k<0):
  print (0,k-(b-a))
else:
        print(a,b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution 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-(b-a))
else:
        print(a,b)

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution code:
a,b,c=input().split()
while(c>0):
  while(a>0):
    a-=1
  while(b>0):
    b-=1
print(a," ",b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
for i in range(k):
    if a >= 1:
        a-=1
    elif b >= 1:
        b-=1
    else:
        path
print(a, b)

Submission status: Runtime Error

Solution code:
a,b,k=map(int,input().split())
x=abs(a-k)
a=max(a-k,0)
b=b-a
print(a b)

Submission status: Runtime Error

Solution code:
a,b,k=map(int,input().split())
ansa=a-k
ansb=max(min(b,b+ansba,0)
ansa=max(a-k,0)
print('{} {}'.format(ansa,ansb))

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

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

a = max(A - K,0)
if A - K < 0:
    b = max(B - K + A, 0)

print(a, b)

Submission status: Runtime Error

Solution code:
a,b,k=int(list(input().split()))
if a>=k:
  a-=k
  k=0
  print(a," ",b)
  exit()
a=0
k-=a
b-=k
print(a," ",b)

Submission status: Runtime Error

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

for i in range(K):
  if A > 0:
    A -= 1
  else:
    if B > 0
    B -= 1

print(str(A) + " " + STR(B))

Submission status: Runtime Error

Solution code:
class AC:
    @staticmethod
    def inputStr(char):
        return input().split(char)
    
    @staticmethod
    def inputInt(char):
        a = input().split(char)
        for i in range(len(a)):
            a[i] = int(a[i])
        return a

inp = AC.inputStr(" ")
A = inp[0]
B = inp[1]
K = inp[2]

for i in range(K):
    if A > 0 :
        A = A-1
    elif B > 0 :
        B = B-1
print(str(A) + " " + str(B))

Submission status: Runtime Error

Solution code:
A,B,C = map(int,input().split())
if A>=C:
  print("[} {}".format(A-C,B))
else:
  print("0 {}".format(A-C+B))

Submission status: Runtime Error

Solution code:
t,a,k = [x for x in list(map(int,input().split()))]
if k>=t:
  if abs(t-k) > a:
    t = 0
    a = 0
  else:
    t = 0
    a = a-abs(t-k)
   print(t,a)
else:
  t = t-k
  print(t,a)

Submission status: Runtime Error

Solution code:
A,B,K = map(int,input().split())
"""
for i in range(K):
    if(A >= 1):
        A -= 1
    elif(B >= 1):
        B -= 1
    else:
        continue
"""
if K >= A:
    _A = 0
else:
   _A = A - K

if K-A >= 1:
    _B = B-(K-A)
print(_A,_B)

Submission status: Runtime Error

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

if k >= a:
  _a = 0
  if k-a >= b:
    _b = 0
  else:
    _b = b-(k-a)
else:
  _a = a - k
     
print('{} {}'.format(_a,_b))

Submission status: Runtime Error

Solution code:
N=int(input())
S = input()
flag=0
for i in range(N-2):
  a = ""
  a = S[i] + S[i+1] + S[i+2]
  if a == "ABC":
    flag += 1
print(flag)

Submission status: Runtime Error

Solution code:
inputA= int(input())
inputB =map(str,input())

print(inputB.count('ABC'))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
takahashi, aoki, count = map(input().split(), int)
k = count
if count - takahashi >= 0:
  takahashi -= count
else:
  takahashi = 0
  count -= takahashi
  if aoki - count > 0:
    aoki -= count
  else:
    aoki = 0
print(takahashi, aoki)

Submission status: Runtime Error

Solution code:
a = input().split(" ")
a[0] = int(a[0])
a[1] = int(a[1])
a[2] = int(a[2])
if a[0] > 0 and a[1] > 0:
  print("0 0")
else:
  if a[2] > a[0]:
    a[0] = 0
  a[2] = a[2] - a
  if a[2] > a[1]:
    a[1] = 0
  else: 
    a[1] = a[1] - a[2]
  print(str(a[0]) + " " + str(a[1]))

Submission status: Runtime Error

Solution code:
a = input().split(" ")
a[0] = int(a[0])
a[1] = int(a[1])
a[2] = int(a[2])
if a[0] > 0 and a[1] > 0:
  print("0 0")
  return
else:
  if a[2] > a[0]:
    a[0] = 0
  a[2] = a[2] - a
  if a[2] > a[1]:
    a[1] = 0
  else: 
    a[1] = a[1] - a[2]
print(str(a[0]) + " " + str(a[1]))

Submission status: Runtime Error

Solution code:
a = input().split(" ")
a[0] = int(a[0])
a[1] = int(a[1])
if a[0] > 0 and a[1] > 0:
  for i in range(0, int(a[2])):
    if a[0] > 0:
      a[0] -= 1
    else:
      if a[0] == 0 and a[1] == 0:
  	  	break
  	  else:
        a[1] -= 1
print(str(a[0]) + " " + str(a[1]))

Submission status: Runtime Error

Solution code:
def main()
  a, b, k = map(int, input().split())
  for i in range(k):
    if a > 0:
      a -= 1 
    elif b > 0:
      b -= 1
    else:
      break
  print(str(a) + " " + str(b))
  
if __name__ == "__main__"
  main()

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
for i in range(k)
  if a > 0:
    a -= 1 
  elif b > 0:
    b -= 1
  else:
    break
print(str(a) + " " + str(b)))

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
for i in range(k)
	if a > 0:
  		a -= 1 
	elif b > 0:
 		b -= 1
	else:
		break
print(str(a) + " " + str(b)))

Submission status: Runtime Error

Solution code:
A=int(input())
B=int(input())
K=int(input())

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

elif A<K and K-A>B:
    print(0,0)

Submission status: Runtime Error

Solution code:
A, B ,K = list(map(int, input(),split()))
for k in range(K):
  if A>0:
    A -= 1
  elif A=0 and B>0:
    B -= 1
  else:
    break
else:
  print(A B)

Submission status: Runtime Error

Solution code:
a, b, k = list(map(int,input().strip().split(' ')))

if a > k:
    a1 = a - k
    b1 = b

elif b > k - a:
    a1 = 0
    b1 = max(b -(k - a),0)
    
print(a1, b1)

Submission status: Runtime Error

Solution code:
a, b, k = list(map(int,input().strip().split(' ')))

if a > k:
    a1 = a - k
    b1 = b

elif b > k - a;
    a1 = 0
    b1 = max(b -(k - a),0
    
print(a1, b1)

Submission status: Runtime Error

Solution code:
 a, b, k = map(int, input().split())
for x in range(k):
    if a >= 1:
         a -= 1
    elif a == 0 and b >=1:
        b = b - 1
    elif a == 0 and b==0:
        pass
print(a, b)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
if a>=c:
  print(a-c,b)
else if a+b>=c:
  print(0,a+b-c)
else:
  print(0,0)

Submission status: Runtime Error

Solution code:
a,b,c=int(input())
if c>=a+b:
  print(0,0)
elif a+b>c>=a:
  print(0,b-c+a)
else:
  print(a-c,b)

Submission status: Runtime Error

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

if A >= K:
  a = A - K
  b = B
elif A+B >= K:
  a = 0
  b = A + B - K
else:
  a = 0
  b = 0

print(str(a) + " " + str(b))

Submission status: Runtime Error

Solution code:
A,B,K = input().split()

for i in range(K):
    if A != 0:
        A -= 1
    elif B != 0:
        B -= 1
    else:
        pass

print(A+" "+B)

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(500*500)

A = int(input())
B = int(input())
K = int(input())


for i in range(1, K+1) :
    if A >0:
        A -= 1
    elif B > 0 :
        B -= 1
        
print(A, B)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
K = int(input())


for i in range(1, K+1) :
    if A >0:
        A -= 1
    elif B > 0 :
        B -= 1
        
print(A, B)

Submission status: Runtime Error

Solution code:
a, b, k= map(str, input().split(" "))
for i in range(k):
    if a > 0:
        a-=1
    elif b > 0:
        b-=1
print(a, b)

Submission status: Runtime Error

Solution code:
s = input()
a, b, k = s.split()
a, b, k = int(a), int(b), int(c)

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

Submission status: Runtime Error

Solution code:
def resolve():
    A, B, K = map(int,input().split())

    '''
    for i in range(K):
        if 1 <= A:
            A-=1
        elif 1 <= B:
            B-=1
    '''

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

    print("{} {}".format(A,B))

if __name__ == "__main__":
    resolve()

Submission status: Runtime Error

Solution code:
import sys

def stdin_parse_int():
    list = []
    for i in sys.stdin.split():
        list.append(int(i))
    return list

list = stdin_parse_int()
A = list[0]
B = list[1]
K = list[2]

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

Submission status: Runtime Error

Solution code:
import sys

def stdin_parse_int():
    list = []
    for i in sys.stdin:
        list.append(int(i))
    return list

list = stdin_parse_int()
A = list[0]
B = list[1]
K = list[2]

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

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution code:

inputA,inputB,inputC = input().split()

if inputC >= inputA:
    if inputB > inputC-inputA:
        print(0,inputB -(inputC-inputA))
    else:
        print(0,0)
else:
    print(inputA-inputC,inputB)

Submission status: Runtime Error

Solution code:
import sys
a = []
for l in sys.stdin:
    a.append(int(l))

A,B,K = a[0], a[1], a[2]

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

Submission status: Runtime Error

Solution code:
import sys
a = []
for l in sys.stdin:
    a.append(int(l))

A,B,K = a[0], a[1], a[2]

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

Submission status: Runtime Error

Solution code:
in_list = input().split()
A, B, K = int(in_list[0]), int(in_list[1]), int(in_list[2])

for k in range(K):
  if A > 0:
    A -= 1
  elif B > 0:
    B -= 1
  elif:
    pass

print(A, B)

Submission status: Runtime Error

Solution code:
in_list = input().split()
A, B, K = int(in_list[0]), int(in_list[1]), int(in_list[2])

for k in range(K):
  if A > 0:
    A -= 1
  elif B > 0:
    B -= 1
  elif:
	pass

print(A, B)

Submission status: Runtime Error

Solution code:
in_list = (int)input().split()
A, B, K = in_list[0], in_list[1], in_list[2]

for k in range(K):
  if A > 0:
    A -= 1
  elif B > 0:
    B -= 1
  elif:
	pass

print(A, B)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution 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,b)

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

Solution code:
a,b,k = map(int,input.split())
for i in range(k):
    if a >= 1:
        a -= 1
    elif a < 1 and b >=1:
        b -= 1
print(a,b,end=" ")

Submission status: Runtime Error

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

aa = a - k
if aa < 0:
    bb = 0 if b+aa <0 else  b+aa
    aa=0

print (aa,bb)

Submission status: Runtime Error

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

aa = a - k
if aa < 0:
    bb=b+aa
    aa=0

print (aa,bb)

Submission status: Runtime Error

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

for a,b in range(k):
	if a >=  1:
    	a -= 1
  
	elif a < 1 and b >= 1:
		b -= 1
	elif a < 1 and b < 1:
      	a =+ 0
        
print (a,b,end=" ")

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
for i in range(k):
  if a >= 1:
    a -= 1
  elif b >= 1:
    for i in range(k-i)
      b -= 1
      elif b >= 1:
        break
    break
  else
    break
print("{} {}".format(a, b))

Submission status: Runtime Error

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

if a <= k:
  if b -(k - a) <=0:
    print('0 0')
  else:
    s = 0
    t = b - (k - a)
    print('{} {}'.format(s, t))
else:
  s = a - k
  t = b
  print('{} {}'.format(s, t))

Submission status: Runtime Error

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

if A+B<=K:
  print('0 0')
elif A<=K:
  print('0 {}'.format(B-K+A))
else:
  print('{} {}'.format(A-X,B))

Submission status: Runtime Error

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

if A+B<K:
  print('0 0')
elif A<K:
  print('0 {}'.format(B-K+A))
else:
  print('{} {}'.format(A-X,B))

Submission status: Runtime Error

Solution 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)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = [int(x) for x input().split()]

ma = min(a, c)
a = a-ma
c = c-ma
ma = min(c, b)
b = b - ma
print(str(a)+" "+str(b))

Submission status: Runtime Error

Solution code:
a, b, c = list(map(int, input()))
 
if c >= a:
  c -= a
  b -= c
  print(0, b)
else:
  print(a-c, b)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input())

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

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input())
for i in range(k):
  if a > 0:
    a -= 1
  elif b > 0:
    b -= 0
  else:
    break
    
print(" ".join(map(str, [a,b])))

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
for i in range(k):
  if a > 0:
    a -= 1
  elif b > 0:
    b -= 0:
  else:
    break
    
print(" ".join(map(str, [a,b])))

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input())
for i in range(k):
  if a > 0:
    a -= 1
  elif b > 0:
    b -= 0:
  else:
    break
    
print(" ".join(map(str, [a,b])))

Submission status: Runtime Error

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

def eat_cookie(A,B,K):
    if A == 0 && B == 0:
        return 0,0
    if A >= K:
        return A-K,B
    else:
        if B-A+k > 0:
            return 0,B-K+A
        else:
            return 0,0


resultA,resultB = eat_cookie(A,B,K)
print(resultA,resultB)

Submission status: Runtime Error

Solution code:
a, b, k = (int(i) for i in input().split())
takahashi = a - k
aoki = b + takahashi if takahashi < 0 else b
print(f"{max(takahashi, 0)} {max(aoki, 0)}")

Submission status: Runtime Error

Solution code:
a, b, k = int(i) for i in input().split()
takahashi = a - k
aoki = b + takahashi if takahashi < 0 else b
print(f"{max(takahashi, 0)} {max(aoki, 0)}")

Submission status: Runtime Error

Solution code:
a, b, k = input().split()
takahashi = a - k
aoki = b + takahashi if takahashi < 0 else b
print(f"{max(takahashi, 0)} {max(aoki, 0)}")

Submission status: Runtime Error

Solution 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+" ")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, k = map(int, input().split())
for i in range(k):
  if a > 0:
    a = a - 1
  elif b > 0:
    b = b - 1
  else:
    none
print(a, b)

Submission status: Runtime Error

Solution code:
if A >= K:
    A = A - K
elif (A + B) >= K:
    B = B - K + A
    A = 0
else:
    A = B = 0

print(A, B)

Submission status: Runtime Error

Solution code:
list = list(map(int,input().split()))
A = list[0]
B = list[1]
K = list[2]

for num in range(K):
    if(A < 1 && B < 1):
        break
    elif(A > 1):
        A -= 1
    elif(B < 1):
        B -= 1

print(A, B)