using System;
using System.Collections.Generic;
using System.Text;
namespace caitiao
{
class Program
{
static void Main(string[] args)
{
int[,] a = new int[,]{
{03, 06, 12, 15, 23, 26, 10},
{02, 07, 11, 16, 27, 32, 06},
{11, 15, 17, 18, 20, 30, 16},
{10, 20, 22, 23, 26, 33, 11},
{01, 03, 17, 23, 30, 33, 12},
{01, 06, 07, 15, 24, 30, 08},
{01, 06, 09, 10, 11, 18, 08},
{01, 04, 05, 17, 24, 27, 09},
{03, 05, 07, 10, 19, 23, 13},
{06, 17, 19, 20, 26, 27, 04},
{02, 05, 06, 19, 27, 30, 15},//18
{06, 14, 15, 19, 25, 26, 08},
{02, 07, 13, 16, 20, 33, 03}, //16
{02, 04, 06, 15, 17, 32, 05},
{03, 06, 09, 14, 15, 18, 02}, //14
{04, 08, 09, 21, 26, 27, 09},
{05, 11, 14, 17, 18, 28, 01}, //12
{02, 04, 13, 14, 18, 23, 15},