import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[9];
        for(int i = 0; i < n; i++){
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        }
        int ans1 = 0;
        for(int i = 0; i < 8; i++)
            if(a[i] > 0) ans1++;
        int ans2;
        if(ans1 == 0){
            ans1 = 1;
            ans2 = a[8];
        }else
            ans2 = ans1 + a[8];
        System.out.print(ans1 + " " + ans2);
    }
} import java.util.*; util.* java class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[9];
        for(int i = 0; i < n; i++){
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        }
        int ans1 = 0;
        for(int i = 0; i < 8; i++)
            if(a[i] > 0) ans1++;
        int ans2;
        if(ans1 == 0){
            ans1 = 1;
            ans2 = a[8];
        }else
            ans2 = ans1 + a[8];
        System.out.print(ans1 + " " + ans2);
    }
} Main public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[9];
        for(int i = 0; i < n; i++){
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        }
        int ans1 = 0;
        for(int i = 0; i < 8; i++)
            if(a[i] > 0) ans1++;
        int ans2;
        if(ans1 == 0){
            ans1 = 1;
            ans2 = a[8];
        }else
            ans2 = ans1 + a[8];
        System.out.print(ans1 + " " + ans2);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[9];
        for(int i = 0; i < n; i++){
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        }
        int ans1 = 0;
        for(int i = 0; i < 8; i++)
            if(a[i] > 0) ans1++;
        int ans2;
        if(ans1 == 0){
            ans1 = 1;
            ans2 = a[8];
        }else
            ans2 = ans1 + a[8];
        System.out.print(ans1 + " " + ans2);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[9]; a new int[9] 9 for(int i = 0; i < n; i++){
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        } {
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        } int k = sc.nextInt() / 400; k sc.nextInt() / 400 sc.nextInt() sc.nextInt sc 400 if(k > 8) k = 8; k > 8 k 8 k = 8 k 8 a[k]++ a[k] a k int ans1 = 0; ans1 0 for(int i = 0; i < 8; i++)
            if(a[i] > 0) ans1++; int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i if(a[i] > 0) ans1++; if(a[i] > 0) ans1++; a[i] > 0 a[i] a i 0 ans1++ ans1 int ans2; ans2 if(ans1 == 0){
            ans1 = 1;
            ans2 = a[8];
        }else
            ans2 = ans1 + a[8]; ans1 == 0 ans1 0 {
            ans1 = 1;
            ans2 = a[8];
        } ans1 = 1 ans1 1 ans2 = a[8] ans2 a[8] a 8 ans2 = ans1 + a[8] ans2 ans1 + a[8] ans1 a[8] a 8 System.out.print(ans1 + " " + ans2) System.out.print System.out System System.out ans1 + " " + ans2 ans1 + " " + ans2 ans1 " " ans2 String[] args args
import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[9];
        for(int i = 0; i < n; i++){
            int k = sc.nextInt() / 400;
            if(k > 8) k = 8;
            a[k]++;
        }
        int ans1 = 0;
        for(int i = 0; i < 8; i++)
            if(a[i] > 0) ans1++;
        int ans2;
        if(ans1 == 0){
            ans1 = 1;
            ans2 = a[8];
        }else
            ans2 = ans1 + a[8];
        System.out.print(ans1 + " " + ans2);
    }
}