import std.stdio;void main(){int n;foreach(c;readln)n*=2,n+=c%2;writef("%08b",n/512*n&255);}