while(a:?read\-line(?-,?-,~))#~do(b:0,for c in charlist(a)do(b:b+[1,0,0,0,0,0,1,0,2,1][cint(c)-47]),dispterms(b));