public static void Main ()
string [,] colors = {{null, null,null,"."}, {null, null, "B","."}, {null,"G",null,"."}, {null,"G","B","."}, {"R",null,null,"."},
{"R", null, "B", "."}, {"R","G",null,"."},{"R","G","B","."}};
string [] comms = {"R","G","B",".","G","."};
int [] score = {7,7,7,7,7,7};
for (int i=0; i<comms.Length; i++) {
for (int j=0; j<4; j++) {if (colors[k,j] == comms[i]) {q=q+1;}}}
if (q == comms.Length) {Console.WriteLine("Yes");}
else {Console.WriteLine("No");}