import java.util.Scanner;
import java.util.StringJoiner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    }

} import java.util.Scanner; Scanner java.util import java.util.StringJoiner; StringJoiner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    } 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[n]; a new int[n] n int[] rate = new int[9]; rate new int[9] 9 for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        } {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int idx = Math.min(a[i] / 400, 8); idx Math.min(a[i] / 400, 8) Math.min Math a[i] / 400 a[i] a i 400 8 rate[idx]++ rate[idx] rate idx int ans = 0; ans 0 for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        } int i = 0; int i = 0; i 0 i < rate.length - 1 i rate.length - 1 rate.length rate rate.length 1 i++ i++ i {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        } {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        } if (rate[i] == 0) {
                continue;
            } rate[i] == 0 rate[i] rate i 0 {
                continue;
            } continue; ans++ ans StringJoiner sj = new StringJoiner(" "); sj new StringJoiner(" ") sj.add(String.valueOf(Math.max(ans, 1))) sj.add sj String.valueOf(Math.max(ans, 1)) String.valueOf String Math.max(ans, 1) Math.max Math ans 1 sj.add(String.valueOf(ans + rate[8])) sj.add sj String.valueOf(ans + rate[8]) String.valueOf String ans + rate[8] ans rate[8] rate 8 System.out.println(sj.toString()) System.out.println System.out System System.out sj.toString() sj.toString sj String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    }

} Main
import java.util.Scanner;
import java.util.StringJoiner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
            int idx = Math.min(a[i] / 400, 8);
            rate[idx]++;
        }
        int ans = 0;
        for (int i = 0; i < rate.length - 1; i++) {
            if (rate[i] == 0) {
                continue;
            }
            ans++;
        }
        StringJoiner sj = new StringJoiner(" ");
        sj.add(String.valueOf(Math.max(ans, 1)));
        sj.add(String.valueOf(ans + rate[8]));
        System.out.println(sj.toString());
    }

}
