using System.Collections.Generic;
public static void Main()
char[,] matrix = new char[16, 16];
List<string> answers = new List<string>();
for (int rows = 0; rows < 16; rows++)
string digits = Console.ReadLine();
for (int cols = 0; cols < digits.Length; cols++)
matrix[rows, cols] = digits[cols];
string question = Console.ReadLine();
int cookiePiecesCount = 0;
if (question == "paypal")
if (question == "what is")
int row = int.Parse(Console.ReadLine());
int col = int.Parse(Console.ReadLine());
if ((col == 0 && row == 0) || (col == 0 && row == 15))
if (matrix[row, col] == '1' && matrix[row, col + 1] == '1')
answers.Add("broken cookie");
if (matrix[row, col] == '1' && matrix[row, col + 1] == '0')
answers.Add("cookie crumb");
if ((col == 15 && row == 0) || (col == 15 && row == 15))
if (matrix[row, col] == '1' && matrix[row, col - 1] == '1')
answers.Add("broken cookie");
if (matrix[row, col] == '1' && matrix[row, col - 1] == '0')
answers.Add("cookie crumb");
if (matrix[row, col] == '0')
if (row == 0 || row == 15)
if (matrix[row, col - 1] == '1' || matrix[row, col + 1] == '1')
answers.Add("broken cookie");
else if(matrix[row, col - 1] == '0' && matrix[row, col + 1] == '0')
answers.Add("cookie crumb");
for (int i = row - 1; i <= row + 1; i++)
for (int j = col - 1; j <= col + 1; j++)
if (matrix [i, j] == '1')
if (cookiePiecesCount == 1)
answers.Add("cookie crumb");
if (cookiePiecesCount > 1 && cookiePiecesCount < 9)
answers.Add("broken cookie");
if (cookiePiecesCount == 9)
int row = int.Parse(Console.ReadLine());
int col = int.Parse(Console.ReadLine());
if (matrix[row, col] == '0')
if (row == 0 || row == 15)
for (int i = row - 1; i <= row + 1; i++)
for (int j = col - 1; j <= col + 1; j++)
if (cookiePiecesCount < 9)
if (cookiePiecesCount == 9)
for (int i = 0; i < answers.Count; i++)
Console.WriteLine(answers[i]);
Console.WriteLine("{0:F2}", cookies * 1.79);