"use strict";
function Main(input) {
	input = input.split("\n");
	const person = input[1].split(" ");
	let rates = [];
	
	for(let i=0;i < 9;i++){
		rates[i] = 0;
	}
	
	for(let personCount=0; personCount < person.length; personCount++){
	    let inputValue = parseInt(person[personCount], 10);
	    if(1 <= inputValue && inputValue < 400){
	        rates[0] += 1;
	    }
	    else if(400 <= inputValue && inputValue < 800){
		    rates[1] += 1;
		}
		else if(800 <= inputValue && inputValue < 1200){
		    rates[2] += 1;
		}
		else if(1200 <= inputValue && inputValue < 1600){
		    rates[3] += 1;
		}
		else if(1600 <= inputValue && inputValue < 2000){
		    rates[4] += 1;
		}
		else if(2000 <= inputValue && inputValue < 2400){
		    rates[5] = 1;
		}
		else if(2400 <= inputValue && inputValue < 2800){
		    rates[6] += 1;
		}
		else if(2800 <= inputValue && inputValue < 3200){
		    rates[7] += 1;
		}
		else if(3200 <= inputValue && inputValue <= 4800){
		    rates[8] += 1;
		}
	}
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
