import java.util.*;
class arrayadd
{
public static void main()
{
Scanner s=new Scanner(System.in);
int i,sum=0;
int arrA[]=new int[5];
int arrB[]=new int[5];
int arrC[]=new int[10];
System.out.println("ENTER 5 NOS. IN ARRAY A");
for (i=0;i< 5;i++)
arrA[i]=s.nextInt();
System.out.println("ENTER 5 NOS. IN ARRAY B");
for (i=0;i< 5;i++)
arrB[i]=s.nextInt();
for (i=0;i< 10;i++)
{
if(i< 5)
arrC[i]=arrA[i];
else
arrC[i]=arrB[i-5];
}
System.out.println("ELEMENTS OF ARRAY C");
for (i=0;i< 10;i++)
System.out.println(arrC[i]);
}
}