for c in"abcdefghACFH":print(max(c+'3\n%s4'%c,"N%s3"%c.lower()))