import java.util.*;

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

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] col = new int[9];
        for(int i = 0;i < N;i++){
            int a = sc.nextInt();
            if(a/400 <= 7)  col[a/400]++;
            else    col[8]++;
        }
        int m1 = 0;
        int m2 = 0;
        for(int i = 0;i < 8;i++){
            if(col[i] > 0){
                m1++;
                m2++;
            }
        }
        if(col[8] > 0){
            if(m1 == 0) m1 = 1;
            m2 += col[8];
        }
        System.out.println(m1+" "+m2);
    }
}