using System;
public class Program
{
public static void Main()
Random rand = new Random();
const int N = 10, M = 8;
int[,] A = new int[N,M];
for(int i = 0; i<N; i++)
for(int j = 0; j<M; j++)
A[i,j] = rand.Next(10);
int[] B = new int[N];
bool s = true;
if (A[i,j] != A[i,M-1-j])
s = false;
if (s)
B[i] = 1;
}
foreach(int i in B)
Console.Write(i);