using System;
using System.Linq;
public class C{
    public static void Main(){
        int n;
        n = int.Parse(Console.ReadLine());
        int[] a = new int[n];
        string[] aSt = Console.ReadLine().Split().ToArray();
        for (int i =0;i<n;i++){
            a[i] = int.Parse(aSt[i]);
        }
        int[] check = new int[9];
        for (int i= 0;i<n;i++){
            a[i]/=400;
            if (a[i]<=7){
            check[a[i]]=1;
            }
            else{
                check[a[i]]++;
            }
        }
        int ansMin = 0;
        for (int i = 0;i<=7;i++){
            ansMin += check[i];
        }
        int ansMax = ansMin;
        if (ansMin==0 && check[8]>0){
            ansMin++;
        }
        ansMax+=check[8];

        Console.Write(ansMin);
        Console.Write(' ');
        Console.WriteLine(ansMax);
        
    }
}
