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