open System
let R T = stdin.ReadLine()|> T
let RS T = stdin.ReadLine().Split()|>Array.map T
let Mod = (1e9|>int64)+7L
[<EntryPoint>]
let main argv =
    let A,B,K = RS int64|>fun c->c.[0],c.[1],c.[2]
    (max 0L (A-K))|>stdout.Write
    stdout.Write " "
    if A>=K then B else (max 0L (B-(K-A)))
    |>stdout.WriteLine
    0
