using C=System.Console;class M{static void Main(){var s=C.ReadLine();int i=int.Parse(s.Substring(6));C.WriteLine(64%i>0?s:i-1+"and x");Main();}}