while 1:a=input();n=int(a[6:]);print([a,"%sand x"%~-n][64%n<1])