p = input() if p.endswith("ai"): print(p[:-2] + "AI") else: print(p + "-AI")