S=input() if ''.join(list(reversed(list(S))))[:2]=="ia": print(f"{S[0:len(S)-2]}AI") else: print(f"{S}-AI")