S=N=0;O="" for c in raw_input().split(): S+=int(c,16)<8:N-=9;O+=chr(S&255);S=S>>9&(1<