import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        System.out.println(min+" "+max);
    }
} 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 [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        System.out.println(min+" "+max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        System.out.println(min+" "+max);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        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 [] c = new int [9]; c new int [9] 9 for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        } {
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        } int tmp = sc.nextInt()/400; tmp sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 if(tmp>8)tmp=8; tmp>8 tmp 8 tmp=8 tmp 8 c[tmp]++ c[tmp] c tmp int max max min=0; min 0 for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            if(c[i]!=0)min++;
        } {
            if(c[i]!=0)min++;
        } if(c[i]!=0)min++; c[i]!=0 c[i] c i 0 min++ min if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        } min==0 min 0 {
            min=1;
            max=c[8];
        } min=1 min 1 max=c[8] max c[8] c 8 {
            max=min+c[8];
        } max=min+c[8] max min+c[8] min c[8] c 8 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) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        System.out.println(min+" "+max);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        System.out.println(min+" "+max);
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int [] c = new int [9];
        for(int i=0; i<N; i++){
            int tmp = sc.nextInt()/400;
            if(tmp>8)tmp=8;
            c[tmp]++;
        }
        int max,min=0;
        for(int i=0; i<8; i++){
            if(c[i]!=0)min++;
        }
        if(min==0){
            min=1;
            max=c[8];
        }else{
            max=min+c[8];
        }
        System.out.println(min+" "+max);
    }
}