char*t,n[999],c[999];main(s,i){s=gets(n);while(t=gets(c))for(i=0;*t;)n[i++]+=(44-*t++)%2;puts(n);}