S = input() l = len(S) if S[l-2] == 'a' and S[l-1] == 'i': print(S[:-2]+'AI') else: print(S+'-AI')