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