p$<.map{|s| s.chomp! if s == 'NONE' 256 else re = /[#{s.split(?,)*""}]/ (0..255).count{|n|!("%02X"%n)[re]} end }.inject:*