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