s;main(k){char*p=&s,*q;for(;k;p=k-1)for(k=gets(q=p+99);putchar("\n| _"[p-q&1?(p[1]|*p++)%3?:*q/16:(*p|*q++)/15])-10;);}