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