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