# 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[:judge]+'AI') else: print(name+'-AI')