S = str(input()) if S[len(S)-2:len(S)] == 'ai': print(S.replace('ai', 'AI')) else: print(S+'-AI')