char*p;main(b){for(;b;)for(gets(p=&b),puts();*p++=p[1]?abs(*p-p[1])+48:0;);}