import java.io.*;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    try {
      // 標準入力受け取り
      Scanner scan = new Scanner(System.in);      
      Long cookie_a     = Long.parseLong(scan.next()); //takahashi cookie
      Long cookie_b     = Long.parseLong(scan.next()); //aoki cookie
      Long play         = Long.parseLong(scan.next()); //kaisu
      
      //算出
      if (cookie_a >= play) {
        cookie_a -= play;
      } else {
        cookie_b = cookie_b - (play - cookie_a);
        cookie_a = 0L;
      }
      
      if (cookie_b < 0) cookie_b = 0L;
      
      System.out.print(cookie_a + " " + cookie_b);
      
    } catch (Exception e) {     
      System.out.print("error");
    }
  }
}

/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