from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline S = input()[:-1] N = len(S) if S[-2:]=='ai': print(S[:-2]+'AI') else: print(S+'-AI')