using System;using C=System.Console;using K=System.ConsoleKey;using O=System.ConsoleColor;partial class M{void W(string s,int c){if(c==0)C.ForegroundColor=(O)7;else{while(c>15)c-=15;C.ForegroundColor=(O)c;}C.Write(s);}void L(){L("");}void L(object o){C.ForegroundColor=(O)15;C.WriteLine(o);}void R(){C.BackgroundColor=0;C.SetCursorPosition(0,0);}static int I{get{switch((C.ReadKey(true)).Key){case K.Q:case K.Escape:return 0;case K.LeftArrow:case K.NumPad4:case K.H:return 10;case K.RightArrow:case K.NumPad6:case K.L:return 20;case K.UpArrow:case K.NumPad8:case K.K:return 1;case K.DownArrow:case K.NumPad2:case K.J:return 2;case K.NumPad7:case K.Y:return 11;case K.NumPad9:case K.U:return 21;case K.NumPad1:case K.B:return 12;case K.NumPad3:case K.N:return 22;}return 5;}}}