Imports System

Public Class Program


    Public Shared Sub Main(args As String())

        Dim input() As ULong = Array.ConvertAll(Of String, ULong)(Console.ReadLine.Split(" "), AddressOf ULong.Parse)

        If input(0) >= input(2) Then
            input(0) -= input(2)
            input(2) = 0
        Else

            input(2) -= input(0)
            input(0) = 0
        End If

        If input(1) >= input(2) Then
            input(1) -= input(2)
            input(2) = 0
        Else

            input(2) -= input(1)
            input(1) = 0
        End If

        Console.WriteLine("{0} {1}", input(0), input(1))

    End Sub



End Class
