var c:char;i,n:byte;begin repeat read(c);n:=0;for i:=0to 7do n:=n*2+ord(c)shr i and 1;write(chr(n))until 0>0end.