import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] li = new int[9]; li new int[9] 9 for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        } {
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        } int ind = Math.min(8, sc.nextInt()/400); ind Math.min(8, sc.nextInt()/400) Math.min Math 8 sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 li[ind]++ li[ind] li ind int min = 0; min 0 for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        } int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i {
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        } {
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        } if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            } i == 8 && min != 0 i == 8 i 8 min != 0 min 0 {
                continue;
            } continue; if(li[i] != 0){
                min++;
            } li[i] != 0 li[i] li i 0 {
                min++;
            } min++ min int max = 0; max 0 for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        } int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i {
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        } {
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        } if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            } i == 8 i 8 {
                max += li[i];
            } max += li[i] max li[i] li i if(li[i] != 0){
                max++;
            } li[i] != 0 li[i] li i 0 {
                max++;
            } max++ max System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] li = new int[9];
        for(int i = 0; i < n; i++){
            int ind = Math.min(8, sc.nextInt()/400);
            li[ind]++;
        }
        int min = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8 && min != 0){
                continue;
            }else if(li[i] != 0){
                min++;
            }
        }
        int max = 0;
        for(int i = 0; i < 9; i++){
            if(i == 8){
                max += li[i];
            }else if(li[i] != 0){
                max++;
            }
        }
        System.out.println(min + " " + max);
    }
}