a, b, k = gets.split(" ");

a = a.to_i;
b = b.to_i;
k = k.to_i;

while k > 1
   if a > 0 && a < k
      k = k - a
      a = 0
   elsif a > 0 && a > k
      k = a - k;
      a = 0
   end

   if b > 0 && a == 0 && b <= k
      b = k - b ;
      k = b;

   elsif b > 0 && a == 0 && k <= b
      b = b - k ;
      k = b;
   end
   k -= 1
end

print  "#{a} #{b}";
