import java.util.*;


/**
 * Created by santa on 2016/10/16.
 */

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int[] a = {399,799,1199,1599,1999,2399,2799,3199};
        int[] map = new int[9];

        int N = scanner.nextInt();


        for (int i = 0; i < N; i++) {
            int temp = scanner.nextInt();
            int color = -1;
            if(temp < 400)color = 0;
            for (int j = 1; j < a.length; j++) {
                if(temp > a[j - 1] && temp <= a[j]){
                    color = j;
                }
            }
            if(color == -1)color = 8;
            map[color]++;
        }
        int ans = 0;
        for (int i = 0; i < 8; i++) {
            if(map[i] > 0)ans++;
        }
        if(ans == 0){
            System.out.println(1 + " " + map[8]);
        }else{
            System.out.println(ans + " " + (ans + map[8]));
        }
        
        

    }// mainMethod




} // MainClass
