s = input() if "ai" == s[-1:]: print(s.replace("ai", "AI")) else: print(s + "-AI")