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