import java.util.Scanner;

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();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	}

	static class Pair<F, S> {
		public final F first;
		public final S second;

		Pair (F first, S second) {
			this.first = first;
			this.second = second;
		}
	}
} import java.util.Scanner; Scanner java.util 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();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	}

	static class Pair<F, S> {
		public final F first;
		public final S second;

		Pair (F first, S second) {
			this.first = first;
			this.second = second;
		}
	}
} 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();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	} main {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();
		int Z = sc.nextInt();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	} 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 sc.close() sc.close sc int A = X; A X int B = Y; B Y int C = Z; C Z Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B); model1 new Pair<Integer, Integer>(A, B) A = model1.second A model1.second model1 model1.second B = model1.first B model1.first model1 model1.first Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C); model2 new Pair<Integer,Integer>(A, C) A = model2.second A model2.second model2 model2.second C = model2.first C model2.first model2 model2.first System.out.printf("%d %d %d\n", A, B, C) System.out.printf System.out System System.out "%d %d %d\n" A B C String[] args args static class Pair<F, S> {
		public final F first;
		public final S second;

		Pair (F first, S second) {
			this.first = first;
			this.second = second;
		}
	} Pair public final F first; first public final S second; second Pair (F first, S second) {
			this.first = first;
			this.second = second;
		} Pair {
			this.first = first;
			this.second = second;
		} this.first = first this.first this this.first first this.second = second this.second this this.second second F first first S second second 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();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	}

	static class Pair<F, S> {
		public final F first;
		public final S second;

		Pair (F first, S second) {
			this.first = first;
			this.second = second;
		}
	}
} 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();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	}

	static class Pair<F, S> {
		public final F first;
		public final S second;

		Pair (F first, S second) {
			this.first = first;
			this.second = second;
		}
	}
} Main
import java.util.Scanner;

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();
		sc.close();
		
		int A = X;
		int B = Y;
		int C = Z;
		
		//System.out.printf("%d %d %d\n", A, B, C);

		Pair<Integer, Integer> model1 = new Pair<Integer, Integer>(A, B);
		A = model1.second;
		B = model1.first;

		Pair<Integer, Integer> model2 = new Pair<Integer,Integer>(A, C);
		A = model2.second;
		C = model2.first;
		
		System.out.printf("%d %d %d\n", A, B, C);
	}

	static class Pair<F, S> {
		public final F first;
		public final S second;

		Pair (F first, S second) {
			this.first = first;
			this.second = second;
		}
	}
}