import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { int[] arr = new int[6]; int[] ans = new int[6]; Scanner scanner = new Scanner(System.in); for (int i = 0; i < arr.length; i++) { arr[i] = scanner.nextInt(); ans[5 - i] = arr[i]; } System.out.println(Arrays.toString(arr)); System.out.println(Arrays.toString(ans)); } }