program greedyTakahashi
    implicit none
    integer(8):: a,b,k
    integer(8):: i

    read*, a,b,k
    
    if (a > k) then
        print*, a-k, b
    else 
        print*, 0, max(a+b-k,0)
    end if

end program greedyTakahashi