S = input() if S[-2:] != 'ai': print(S + '-AI') elif S[-2:] == 'ai': S = list(S) S[-2] = 'A' S[-1] = 'I' print(''.join(S))