# input name = input() # proceessing judge = name.find('ai') judge_last = (name[judge] + name[judge+1] == name[len(name)-2] + name[len(name)-1]) if judge == -1: print(name+'-AI') else: if judge_last: print(name[:len(name)-2]+'AI') else: print(name+'-AI')