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