using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;

class Program{
  public static void Main(){

    int n = int.Parse(Console.ReadLine());
    var input = Console.ReadLine().Split();
    int[] a = new int[n];
    int[] b = new int[9];
    
    for(int i=0; i<n; i++){
      a[i] = int.Parse(input[i]);
      if(1 <= a[i] && a[i] <= 399) b[0]++;
      else if(a[i] <= 799) b[1]++;
      else if(a[i] <= 1199) b[2]++;
      else if(a[i] <= 1599) b[3]++;
      else if(a[i] <= 1999) b[4]++;
      else if(a[i] <= 2399) b[5]++;
      else if(a[i] <= 2799) b[6]++;
      else if(a[i] <= 3199) b[7]++;
      else b[8]++;
    }
    int k = 0;
    for(int i=0; i<8; i++){
      if(b[i] > 0) k++;
    }
    int mx = k + b[8];
    if(mx >= 8) mx = 8;
    int mn = k;
    if(k == 0 && b[8]>0) mn = 1;
    Console.WriteLine(mn + " " + mx);

  }
}