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