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