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

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

print(max(0,a), B)


# 答えは出ていない

# manju-san ramu-san
# The next action is 

# Let's do this on tomorrow morning.


# sql_id : hidaka
# ============================
# sql_id & overlap sql_id 

# sessionが捕まえられるか
# sessionが