import std.stdio;void main(){for(int n,m,c;~scanf("%x",&n);c=c?putchar=m,m>>=9,c-1:8)m|=n<