import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  }

} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  }

} Main public static void main(String[] args){
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  } main {
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  } Scanner a = new Scanner(System.in); a new Scanner(System.in) int x = a.nextInt(); x a.nextInt() a.nextInt a int y = a.nextInt(); y a.nextInt() a.nextInt a int c = a.nextInt(); c a.nextInt() a.nextInt a x  = x-y x x-y x y y = y+x y y+x y x x = y-x x y-x y x x = x - c x x - c x c c = c+x c c+x c x x = c-x x c-x c x System.out.println(x + " "+ y + " " + c) System.out.println System.out System System.out x + " "+ y + " " + c " " y x + " "+ y + " " + c x " " y " " c String[] args args public class Main{
  public static void main(String[] args){
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  }

} public class Main{
  public static void main(String[] args){
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  }

} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner a = new Scanner(System.in);
    int x = a.nextInt();
    int y = a.nextInt();
    int c = a.nextInt();
  	x  = x-y;
    y = y+x;
    x = y-x;
    
    x = x - c;
    c = c+x;
    x = c-x;
    System.out.println(x + " "+ y + " " + c);
  }

}
