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