robot = str(input()) n = robot[-2:] o = robot[0:-2] if n == "ai": print(o + "AI") else:print(robot + "-AI")