import java.util.*;
 
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    } 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[] count = new int[9]; count new int[9] 9 int ans1 = 0; ans1 0 int ans2 = 0; ans2 0 for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        } {
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 1 <= a[i] && a[i] <= 399 1 <= a[i] 1 a[i] a i a[i] <= 399 a[i] a i 399 {
                count[0] = 1;
            } count[0] = 1 count[0] count 0 1 if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 400 <= a[i] && a[i] <= 799 400 <= a[i] 400 a[i] a i a[i] <= 799 a[i] a i 799 {
                count[1] = 1;
            } count[1] = 1 count[1] count 1 1 if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 800 <= a[i] && a[i] <= 1199 800 <= a[i] 800 a[i] a i a[i] <= 1199 a[i] a i 1199 {
                count[2] = 1;
            } count[2] = 1 count[2] count 2 1 if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 1200 <= a[i] && a[i] <= 1599 1200 <= a[i] 1200 a[i] a i a[i] <= 1599 a[i] a i 1599 {
                count[3] = 1;
            } count[3] = 1 count[3] count 3 1 if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 1600 <= a[i] && a[i] <= 1999 1600 <= a[i] 1600 a[i] a i a[i] <= 1999 a[i] a i 1999 {
                count[4] = 1;
            } count[4] = 1 count[4] count 4 1 if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 2000 <= a[i] && a[i] <= 2399 2000 <= a[i] 2000 a[i] a i a[i] <= 2399 a[i] a i 2399 {
                count[5] = 1;
            } count[5] = 1 count[5] count 5 1 if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 2400 <= a[i] && a[i] <= 2799 2400 <= a[i] 2400 a[i] a i a[i] <= 2799 a[i] a i 2799 {
                count[6] = 1;
            } count[6] = 1 count[6] count 6 1 if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            } 2800 <= a[i] && a[i] <= 3199 2800 <= a[i] 2800 a[i] a i a[i] <= 3199 a[i] a i 3199 {
                count[7] = 1;
            } count[7] = 1 count[7] count 7 1 {
                count[8]++;
            } count[8]++ count[8] count 8 for(int i=0; i<8; i++){
            ans1 += count[i];
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            ans1 += count[i];
        } {
            ans1 += count[i];
        } ans1 += count[i] ans1 count[i] count i ans2 = ans1 + count[8] ans2 ans1 + count[8] ans1 count[8] count 8 if(ans1 == 0){
            ans1 = 1;
        } ans1 == 0 ans1 0 {
            ans1 = 1;
        } ans1 = 1 ans1 1 System.out.println(ans1+" "+ans2) System.out.println System.out System System.out ans1+" "+ans2 ans1+" "+ans2 ans1 " " ans2 String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        //String str = sc.next();
        int[] a = new int[N];
        int[] count = new int[9];
        int ans1 = 0;
        int ans2 = 0;
        
        for(int i=0; i<N; i++){
            a[i] = sc.nextInt();
            if(1 <= a[i] && a[i] <= 399){
                count[0] = 1;
            }else if(400 <= a[i] && a[i] <= 799){
                count[1] = 1;
            }else if(800 <= a[i] && a[i] <= 1199){
                count[2] = 1;
            }else if(1200 <= a[i] && a[i] <= 1599){
                count[3] = 1;
            }else if(1600 <= a[i] && a[i] <= 1999){
                count[4] = 1;
            }else if(2000 <= a[i] && a[i] <= 2399){
                count[5] = 1;
            }else if(2400 <= a[i] && a[i] <= 2799){
                count[6] = 1;
            }else if(2800 <= a[i] && a[i] <= 3199){
                count[7] = 1;
            }else{
                count[8]++;
            }
        }
        for(int i=0; i<8; i++){
            ans1 += count[i];
        }
        ans2 = ans1 + count[8];
        if(ans1 == 0){
            ans1 = 1;
        }
        System.out.println(ans1+" "+ans2);
    }
}