[*0...r=gets.sum-?‹].combination($_.hex){|c|s='|'*r;c.map{|i|s[i]=42};puts s}