using System; class walk { static void Main() { int a,b,w=0; string[] str = Console.ReadLine().Split(' '); a = int.Parse(str[0]); b = int.Parse(str[1]); while(w