using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProCon
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            int min = 0;
            int max = 0;
            bool[] flags = new bool[8];
            for(int i = 0; i < 8; ++i)
            {
                flags[i] = false;
            }
            for (int i = 0; i < input.Length; ++i)
            {
                int t = int.Parse(input[i]);
                if(t < 3200)
                {
                    if (!flags[t / 400])
                    {
                        flags[t / 400] = true;
                        min += 1;
                        max += 1;
                    }
                }
                else
                {
                    max++;
                }
            }
            Console.WriteLine(min + " " + max);
        }
    }
}
