import java.util.*;
public class Main {
        static Scanner sc = new Scanner(System.in);
        static void myout(Object t){System.out.println(t);}
        static void myerr(Object t){System.err.println(t);}
        static String getStr(){return sc.next();}
        static int getInt(){return sc.nextInt();}
        static Long getLong(){return sc.nextLong();}
        static boolean isNext(){return sc.hasNext();}
        public static void main(String[] args){
          long A = getLong();
          long B = getLong();
          long K = getLong();
          long tmpA = A - K;
          if(tmpA <= 0){
            K = K - A;
            A = 0;
          }else{
            A = A - K;
            K = 0;
          }
          long tmpB = B - K;
          if(tmpB <= 0){
            B = 0;
          }else{
            B = tmpB;
          }
          myout(A + " " + B);
          
        }
        //便利メソッド追加枠ここから

        //便利メソッド追加枠ここまで
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz