public static void Main()
string[,] matrixTop = new string[height, width];
string[,] matrixBottom = new string[height, width];
string[,] matrixPlayfield = new string[height, width];
for (int row = 0; row < height; row++)
int topNumber = int.Parse(Console.ReadLine());
for (int col = width - 1; col >= 0; col--)
int lastBit = (topNumber & (1 << position)) >> position;
matrixTop[row, col] = "T";
matrixTop[row, col] = ".";
for (int row = 0; row < height; row++)
int bottomNumber = int.Parse(Console.ReadLine());
for (int col = width - 1; col >= 0; col--)
int lastBit = (bottomNumber & (1 << position)) >> position;
matrixBottom[row, col] = "B";
matrixBottom[row, col] = ".";
for (int row = 0; row < height; row++)
for (int col = 0; col < width; col++)
if (matrixTop[row, col] == "T" && matrixBottom[row, col] == "B")
matrixPlayfield[row, col] = ".";
else if (matrixTop[row, col] == "T")
matrixPlayfield[row, col] = "T";
else if (matrixBottom[row, col] == "B")
matrixPlayfield[row, col] = "B";
matrixPlayfield[row, col] = ".";
for (int col = 0; col < height; col++)
for (int row = 0; row < width; row++)
if (matrixPlayfield[row, col] == "B")
else if (matrixPlayfield[row, col] == "T")
for (int col = 0; col < height; col++)
for (int row = width - 1; row >= 0; row--)
if (matrixPlayfield[row, col] == "B")
else if (matrixPlayfield[row, col] == "T")
Console.WriteLine("{0}:{1}", topTeamScore, bottomTeamScore);