a,b,k = gets.split.map &:to_i
    if a >= k
        a_rest = a - k
        b_rest = b
    end
    
    if a < k && k <= a + b
      b_rest = b -(k - a)    
      a_rest = 0
    end
    
    if a + b < k
      a_rest = 0
      b_rest = 0
    end
  
  print a_rest," ",b_rest