s = input() if s[-2]=='a' and s[-1]=='i': print(s[:-2]+('AI')) else: print(s + '-AI')