using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class Program
{
    static void Main()
    {
        var N = int.Parse(Console.ReadLine());
        var NX = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        int out1 = 0;
        int i;
        int[] num = new int[8];
        int others = 0;

        for (i = 0; i < N; i++)
        {  
            int n = (NX[i] / 400) > 7 ? others = others + 1 : num[NX[i] / 400] = 1;
        }

        out1 = num.Sum() + others > 8 ? 8 : num.Sum() + others;
        Console.WriteLine(out1);
    }
}