def abc_149_bb
    a,b,k = gets.chomp.split(/\s/).map{|x| x.to_i}

    if a >= k
        a -= k
        k = 0
    else
        k -= a
        a = 0
    end

    if b >= k
        b -= k
    else
        #b -= (k - b)
        b = 0
    end

    print "#{a} #{b}\n"
end

abc_149_bb
