S = input() S1 = S.upper() N = len(S) if S1.endswith("AI"): S = S[:N-2] S1 = S1[N-2:] S=S+S1 else: S = S+"-AI" print(S)