public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] a = new int[20]; int[] b = new int[10]; int[] c = new int[10]; for(int i=0;i<20;i++){ a[i] = Integer.parseInt(reader.readLine()); } for(int i=0;i<10;i++){ b[i] = a[i]; System.out.print(b[i]); } System.out.println(); for(int i=10;i<20;i++){ c[i-10] = a[i]; System.out.print(c[i-10]); } System.out.println(); for(int i=0;i<20;i++){ System.out.print(a[i]); } } }