name=raw_input().rstrip() if name.endswith('ai'): print name[:-2] + 'AI' else: print name+'-AI'