s='' for n in map(ord,raw_input()):o=0;exec"o=o*2+n%2;n/=2;"*8;s+="%c"%o print s