File standardInput readLines map(i,v,if(i%2<1,a:=v,for(j,0,6,write(if(a at(j)>48,"-",if(v at(j)>48,"_"," "))))writeln))