using System;
public class Program
{
public static void Main()
int[] arr =new int[8]{1,3,4,5,8,2,3,4};
int[] arr2 =new int[9];
int cnt =0;
Random x =new Random();
for(int i=0; i<arr2.Length; i++)
int num = x.Next(1,9);
arr2[i] =num;
}
for(int y =0; y<arr2.Length; y++)
Console.Write( arr2[y]);
for(int j =0; j<arr.Length; j++)
for(int o =0; o<arr2.Length; o++)
if(arr[j] ==arr2[o])
cnt++;
if(cnt!=0)
Console.WriteLine(arr[j]);