# coding: utf-8 # Here your code ! line = input() if line.endswith("ai"): print(line.rstrip("ai") + "AI") else: print(line + "-AI")