using System;
using System.Linq;
using System.Collections.Generic;
public class Hello
{

    public static void Main()
    {
        int N = int.Parse(Console.ReadLine());
        string[] s = Console.ReadLine().Split(' ');
        int[] num = s_to_i(s);
        int[] color = new int[8];
        int pro_count = 0;
        for (int i = 0; i < N; i++)
        {
            if (0 <= num[i] && num[i] < 3200) color[num[i] / 400] = 1;
            else { pro_count++; }
        }

        int ans_min = color.Sum();
        if (ans_min == 0) { ans_min = 1; pro_count--; }
        int ans_max = ans_min + pro_count;
        if (ans_max > 8) ans_max = 8;
        Console.WriteLine("{0} {1}", ans_min, ans_max);
    }




    static int[] s_to_i(string[] s)
    {
        int[] ret = Array.ConvertAll<string, int>(s, delegate (string value) { return int.Parse(value); });
        return ret;
    }
}