let arr=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}

var carry = 0
var tak = arr[0] - arr[2]
if( tak < 0 ) {
  carry = tak
  tak = 0
}

var aok = arr[1] + carry
if( aok < 0 ) {
  aok = 0
}
print(tak,aok)