import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	} main {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] a=new int[3]; a new int[3] 3 for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			a[i]=scan.nextInt();
		} {
			a[i]=scan.nextInt();
		} a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan System.out.print(a[a.length-1]+" ") System.out.print System.out System System.out a[a.length-1]+" " a[a.length-1] a a.length-1 a.length a a.length 1 " " for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		} int i=0; int i=0; i 0 i<3-1 i 3-1 3 1 i++ i++ i {
			System.out.print(a[i]+" ");
		} {
			System.out.print(a[i]+" ");
		} System.out.print(a[i]+" ") System.out.print System.out System System.out a[i]+" " a[i] a i " " String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] a=new int[3];
		for(int i=0;i<3;i++)
		{
			a[i]=scan.nextInt();
		}
		System.out.print(a[a.length-1]+" ");
		for(int i=0;i<3-1;i++)
		{
			System.out.print(a[i]+" ");
		}
		

	}

}
