public static void Main()
string knightMove = Console.ReadLine();
string letters = "ABCDEFGH";
string numerals = "12345678";
int firstNumeral = Convert.ToInt32(char.GetNumericValue(knightMove[1]));
int secondNumeral = Convert.ToInt32(char.GetNumericValue(knightMove[4]));
int firstLetterNumericValue = 0;
int secondLetterNumericValue = 0;
for(int letterIndex = 0; letterIndex < letters.Length; letterIndex++)
if(knightMove[0] == letters[letterIndex])
firstLetterNumericValue = Convert.ToInt32(char.GetNumericValue(numerals[letterIndex]));
for(int letterIndex = 0; letterIndex < letters.Length; letterIndex++)
if(knightMove[3] == letters[letterIndex])
secondLetterNumericValue = Convert.ToInt32(char.GetNumericValue(numerals[letterIndex]));
int letterDiff = Math.Abs(firstLetterNumericValue - secondLetterNumericValue );
int numeralDiff = Math.Abs(firstNumeral - secondNumeral);
if(letterDiff == 2 && numeralDiff == 1
||letterDiff == 1 && numeralDiff == 2)
Console.WriteLine("Нет");