import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    }

    // public static int[] swap(int a, int b){
    //     int[] arr = new int[2];
    //     a=a+b;
    //     b=a-b;
    //     a=a-b;
    //     arr[0]=a;
    //     arr[1]=b;
    //     return arr;
    // }

}


 import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    }

    // public static int[] swap(int a, int b){
    //     int[] arr = new int[2];
    //     a=a+b;
    //     b=a-b;
    //     a=a-b;
    //     arr[0]=a;
    //     arr[1]=b;
    //     return arr;
    // }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int z = sc.nextInt(); z sc.nextInt() sc.nextInt sc x=x+y x x+y x y y=x-y y x-y x y x=x-y x x-y x y x=x+z x x+z x z z=x-z z x-z x z x=x-z x x-z x z System.out.println(x + " " + y + " " + z) System.out.println System.out System System.out x + " " + y + " " + z " " y x + " " + y + " " + z x " " y " " z sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    }

    // public static int[] swap(int a, int b){
    //     int[] arr = new int[2];
    //     a=a+b;
    //     b=a-b;
    //     a=a-b;
    //     arr[0]=a;
    //     arr[1]=b;
    //     return arr;
    // }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    }

    // public static int[] swap(int a, int b){
    //     int[] arr = new int[2];
    //     a=a+b;
    //     b=a-b;
    //     a=a-b;
    //     arr[0]=a;
    //     arr[1]=b;
    //     return arr;
    // }

} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int y = sc.nextInt();
        int z = sc.nextInt();

        x=x+y;
        y=x-y;
        x=x-y;

        x=x+z;
        z=x-z;
        x=x-z;

        System.out.println(x + " " + y + " " + z);
        
        sc.close();
    }

    // public static int[] swap(int a, int b){
    //     int[] arr = new int[2];
    //     a=a+b;
    //     b=a-b;
    //     a=a-b;
    //     arr[0]=a;
    //     arr[1]=b;
    //     return arr;
    // }

}



