s=input() print((s[:-2] + "AI") if s. endswith("ai") else (s + "-AI"))