"use strict";
function Main(input) {
  input = input.split("\n");
  const person = input[1].split(" ");
  const boxes = [];
  let freeColorCount = 0;
  const rates = [400, 800, 1200, 1600, 2000, 2400, 2800, 3200];
  
  for(let i=0; i < rates.length; i++){
      boxes[i] = false;
  }
    
  for(let personCount=0; personCount < person.length; personCount++){
      const inputValue = parseInt(person[personCount], 10);
      rates.forEach((rate, rateIndex) => {
          if(inputValue < rate[rateIndex]){
              boxes[personCount] = true;
          }
      });
  }
  console.log(boxes);
  let  color = 0;
  for(let colorCount=0; colorCount < boxes.length; colorCount++){
      color += boxes[colorCount];
  }
  
  const max = color + freeColorCount;
  let min = color;
  
  if(color === 0 && freeColorCount > 0){
      min = 1;
  }
  console.log(min,max);
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));