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