s = input() if s[-2:] == "ai": print(s.replace(s[-2:], "AI")) elif s[-2:] != "ai": print(s + "-AI")