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