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