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