import java.util.*;

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

        int N = sc.nextInt();
        int[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    }
} 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[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] rates = new int[N]; rates new int[N] N for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            rates[i] = sc.nextInt();
        } {
            rates[i] = sc.nextInt();
        } rates[i] = sc.nextInt() rates[i] rates i sc.nextInt() sc.nextInt sc int[] pointFlag = new int[9]; pointFlag new int[9] 9 for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        } int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i {
            pointFlag[i] = 0;
        } {
            pointFlag[i] = 0;
        } pointFlag[i] = 0 pointFlag[i] pointFlag i 0 for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        } {
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        } if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 1 && rates[i] <= 399 rates[i] >= 1 rates[i] rates i 1 rates[i] <= 399 rates[i] rates i 399 {
                pointFlag[0] = 1;
            } pointFlag[0] = 1 pointFlag[0] pointFlag 0 1 if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 400 && rates[i] <= 799 rates[i] >= 400 rates[i] rates i 400 rates[i] <= 799 rates[i] rates i 799 {
                pointFlag[1] = 1;
            } pointFlag[1] = 1 pointFlag[1] pointFlag 1 1 if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 800 && rates[i] <= 1199 rates[i] >= 800 rates[i] rates i 800 rates[i] <= 1199 rates[i] rates i 1199 {
                pointFlag[2] = 1;
            } pointFlag[2] = 1 pointFlag[2] pointFlag 2 1 if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 1200 && rates[i] <= 1599 rates[i] >= 1200 rates[i] rates i 1200 rates[i] <= 1599 rates[i] rates i 1599 {
                pointFlag[3] = 1;
            } pointFlag[3] = 1 pointFlag[3] pointFlag 3 1 if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 1600 && rates[i] <= 1999 rates[i] >= 1600 rates[i] rates i 1600 rates[i] <= 1999 rates[i] rates i 1999 {
                pointFlag[4] = 1;
            } pointFlag[4] = 1 pointFlag[4] pointFlag 4 1 if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 2000 && rates[i] <= 2399 rates[i] >= 2000 rates[i] rates i 2000 rates[i] <= 2399 rates[i] rates i 2399 {
                pointFlag[5] = 1;
            } pointFlag[5] = 1 pointFlag[5] pointFlag 5 1 if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 2400 && rates[i] <= 2799 rates[i] >= 2400 rates[i] rates i 2400 rates[i] <= 2799 rates[i] rates i 2799 {
                pointFlag[6] = 1;
            } pointFlag[6] = 1 pointFlag[6] pointFlag 6 1 if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 2800 && rates[i] <= 3199 rates[i] >= 2800 rates[i] rates i 2800 rates[i] <= 3199 rates[i] rates i 3199 {
                pointFlag[7] = 1;
            } pointFlag[7] = 1 pointFlag[7] pointFlag 7 1 if(rates[i] >= 3200){
                pointFlag[8] += 1;
            } rates[i] >= 3200 rates[i] rates i 3200 {
                pointFlag[8] += 1;
            } pointFlag[8] += 1 pointFlag[8] pointFlag 8 1 int minAns = 0; minAns 0 int maxAns = 0; maxAns 0 for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        } {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        } minAns += pointFlag[i] minAns pointFlag[i] pointFlag i maxAns += pointFlag[i] maxAns pointFlag[i] pointFlag i if(pointFlag[8] > 0 && minAns==0)minAns = 1; pointFlag[8] > 0 && minAns==0 pointFlag[8] > 0 pointFlag[8] pointFlag 8 0 minAns==0 minAns 0 minAns = 1 minAns 1 maxAns += pointFlag[8] maxAns pointFlag[8] pointFlag 8 System.out.println(minAns+" "+maxAns) System.out.println System.out System System.out minAns+" "+maxAns minAns+" "+maxAns minAns " " maxAns String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    }
} Main
import java.util.*;

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

        int N = sc.nextInt();
        int[] rates = new int[N];

        for (int i = 0; i < N; i++) {
            rates[i] = sc.nextInt();
        }

        int[] pointFlag = new int[9];
        for (int i = 0; i < 9; i++) {
            pointFlag[i] = 0;
        }

        for(int i = 0; i<N; i++){
            if(rates[i] >= 1 && rates[i] <= 399){
                pointFlag[0] = 1;
            }else if(rates[i] >= 400 && rates[i] <= 799){
                pointFlag[1] = 1;
            }else if(rates[i] >= 800 && rates[i] <= 1199){
                pointFlag[2] = 1;
            }else if(rates[i] >= 1200 && rates[i] <= 1599){
                pointFlag[3] = 1;
            }else if(rates[i] >= 1600 && rates[i] <= 1999){
                pointFlag[4] = 1;
            }else if(rates[i] >= 2000 && rates[i] <= 2399){
                pointFlag[5] = 1;
            }else if(rates[i] >= 2400 && rates[i] <= 2799){
                pointFlag[6] = 1;
            }else if(rates[i] >= 2800 && rates[i] <= 3199){
                pointFlag[7] = 1;
            }else if(rates[i] >= 3200){
                pointFlag[8] += 1;
            }
        }

        int minAns = 0;
        int maxAns = 0;
        for (int i = 0; i < 8; i++) {
            minAns += pointFlag[i];
            maxAns += pointFlag[i];
        }
        if(pointFlag[8] > 0 && minAns==0)minAns = 1;
        maxAns += pointFlag[8];

        System.out.println(minAns+" "+maxAns);
    }
}