program ABC149B
    implicit none
    integer(16) A,B,K
    read*,A,B,K
    if(A>=K)then
        A=A-K
    else
        B=max(B-(K-A),0_16)
        A=0
    endif
    print"(i0,A,i0)",A," ",B
end program ABC149B