s = input() if 'ai' not in s: print(f"{s}-AI") elif s[-2:] == "ai": print(s[:-2]+"AI") else: print(f'{s}-AI')