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