import java.util.Arrays;
import java.util.Scanner;
//思路还是很简单的,不过令我挺好奇的是输出中的中括号是自动输出的嘛,先溜去IDEA上试一试啦哈哈哈
public class Main {
public static void main(String[] args) {
int[] arr = new int[6];
Scanner scanner = new Scanner(System.in);
for (int i = 0; i < arr.length; i++) {
arr[i] = scanner.nextInt();
}
System.out.println(Arrays.toString(arr));
//write your code here......
for(int i = 0; i < arr.length / 2; i++){
int temp = arr[i];
arr[i] = arr[arr.length - i - 1];
arr[arr.length - i - 1] = temp;
}
System.out.println(Arrays.toString(arr));
}
}