S = input() if 'ai' in S[-2:]: print(S[:-2]+'AI') else: print(S+'-AI')