freq = [[0, 0], [0, 0], [0, 0], [0, 0]]
while line = gets
    score = line.chomp.split.map(&:to_f)
    score.each_with_index{|s, i|
        case s
        when 1.1 .. 2.0 then freq[0][i] += 1
        when 0.6 .. 1.0 then freq[1][i] += 1
        when 0.2 .. 0.5 then freq[2][i] += 1
        else freq[3][i] += 1
        end
    }
end
freq.each{|f| puts f.join(" ")}