do input""a$,c$,e$,g$,i$:input""b$,d$,f$,h$,j$:b$=a$+b$:?a$>""^0+b$=e$+f$*1+b$=g$+h$*2+b$=i$+j$*3," ",b$loop