#include <stdio.h>
#include <time.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int aA[5],aB[5],aC[5],aD[5],aE[5];
int aNew[7];
int i,k=0;
srand((int)time(0));
printf("please Input 5 members of array A:\n");
for(i=0;i<5;i++)
scanf("%d",&aA[i]);
printf("please Input 5 members of array B:\n");
for(i=0;i<5;i++)
scanf("%d",&aB[i]);
printf("please Input 5 members of array C:\n");
for(i=0;i<5;i++)
scanf("%d",&aC[i]);
printf("please Input 5 members of array D:\n");
for(i=0;i<5;i++)
scanf("%d",&aD[i]);
printf("please Input 5 members of array E:\n");
for(i=0;i<5;i++)
scanf("%d",&aE[i]);
k=(int)(rand()%5);
aNew[0]=aA[k];
k=(int)(rand()%5);
aNew[1]=aB[k];
k=(int)(rand()%5);
aNew[2]=aC[k];
k=(int)(rand()%5);
aNew[3]=aC[k];
while(aNew[2]==aNew[3])
{
k=(int)(rand()%5);
}
aNew[3]=aC[k];
k=(int)(rand()%5);
aNew[4]=aD[k];
k=(int)(rand()%5);
aNew[5]=aD[k];
while(aNew[4]==aNew[5])
{
k=(int)(rand()%5);
}
aNew[5]=aD[k];
k=(int)(rand()%5);
aNew[6]=aE[k];
for(i=0;i<7;i++)
printf("%d\n",aNew[i]);
return 0;
}