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