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