import 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();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	}
} import java.util.*; util.* 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();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	}
} 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();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int X = sc.nextInt();
      	int Y = sc.nextInt();
      	int Z = sc.nextInt();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	} 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 int[] S=new int[3]; S new int[3] 3 S[0]=X S[0] S 0 X S[1]=Y S[1] S 1 Y S[2]=Z S[2] S 2 Z int temp=S[0]; temp S[0] S 0 S[0]=S[1] S[0] S 0 S[1] S 1 S[1]=temp S[1] S 1 temp int tem=S[0]; tem S[0] S 0 S[0]=S[2] S[0] S 0 S[2] S 2 S[2]=tem S[2] S 2 tem for(int i=0;i<3;i++){
        System.out.println(S[i]);
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
        System.out.println(S[i]);
        } {
        System.out.println(S[i]);
        } System.out.println(S[i]) System.out.println System.out System System.out S[i] S i 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();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	}
} 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();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	}
} Main
import 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();
      
      	int[] S=new int[3];
        S[0]=X;
        S[1]=Y;
        S[2]=Z;
        
        int temp=S[0];
        S[0]=S[1];
        S[1]=temp;
        
        int tem=S[0];
        S[0]=S[2];
        S[2]=tem;
        
		for(int i=0;i<3;i++){
        System.out.println(S[i]);
        }
		
	}
}