import sys input=lambda: sys.stdin.readline().rstrip() S=input() n=len(S) if S[n-2:]=="ai": print(S[:n-2]+"AI") else: print(S+"-AI")