for(;Q=P=readline();print())for(F in Q)51^51&P&&putstr(Q[P|=1<