import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = read().decode().rstrip() if S[-2:] == 'ai': S = S[:-2] + 'AI' else: S = S + '-AI' print(S)