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