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