import java.util.*;
import java.lang.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] rate = new int[9]; rate new int[9] 9 for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        } {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        } int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 400 tmp 400 {
                rate[0]++;
            } rate[0]++ rate[0] rate 0 if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 800 tmp 800 {
                rate[1]++;
            } rate[1]++ rate[1] rate 1 if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 1200 tmp 1200 {
                rate[2]++;
            } rate[2]++ rate[2] rate 2 if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 1600 tmp 1600 {
                rate[3]++;
            } rate[3]++ rate[3] rate 3 if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 2000 tmp 2000 {
                rate[4]++;
            } rate[4]++ rate[4] rate 4 if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 2400 tmp 2400 {
                rate[5]++;
            } rate[5]++ rate[5] rate 5 if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 2800 tmp 2800 {
                rate[6]++;
            } rate[6]++ rate[6] rate 6 if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            } tmp < 3200 tmp 3200 {
                rate[7]++;
            } rate[7]++ rate[7] rate 7 {
                rate[8]++;
            } rate[8]++ rate[8] rate 8 int count = 0; count 0 for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i <= 7 i 7 i++ i++ i {
            if (rate[i] > 0) {
                count++;
            }
        } {
            if (rate[i] > 0) {
                count++;
            }
        } if (rate[i] > 0) {
                count++;
            } rate[i] > 0 rate[i] rate i 0 {
                count++;
            } count++ count System.out.println(Math.max(count, 1) + " " + (count + rate[8])) System.out.println System.out System System.out Math.max(count, 1) + " " + (count + rate[8]) Math.max(count, 1) + " " + (count + rate[8]) Math.max(count, 1) Math.max Math count 1 " " (count + rate[8]) count rate[8] rate 8 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    }
} Main
import java.util.*;
import java.lang.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] rate = new int[9];
        for (int i = 0; i < n; i++) {
            int tmp = sc.nextInt();
            if (tmp < 400) {
                rate[0]++;
            } else if (tmp < 800) {
                rate[1]++;
            } else if (tmp < 1200) {
                rate[2]++;
            } else if (tmp < 1600) {
                rate[3]++;
            } else if (tmp < 2000) {
                rate[4]++;
            } else if (tmp < 2400) {
                rate[5]++;
            } else if (tmp < 2800) {
                rate[6]++;
            } else if (tmp < 3200) {
                rate[7]++;
            } else {
                rate[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i <= 7; i++) {
            if (rate[i] > 0) {
                count++;
            }
        }
        System.out.println(Math.max(count, 1) + " " + (count + rate[8]));
    }
}