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