r=str.replace while 1:print r(r(r(raw_input(),"ass","butt"),"Ass","Butt"),"ASS","BUTT")