"use strict";
var INPUT = require('fs').readFileSync('/dev/stdin', 'utf-8');
var _a = INPUT.split(' ').map(Number), A = _a[0], B = _a[1], K = _a[2];
var a = Math.max(0, A - K);
var b = K > A ? Math.max(0, B - (K - A)) : B;
console.log(a + " " + b);
