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