i=0 for c in input():a=ord(c)*2%5-1;print([i,c][a],end="");i-=a