s=input();print([s+'-AI',s[:-2]+'AI'][s[-2:]=='ai'])