import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int[] colors = new int[8];
        int free_color = 0;
        
        for(int i=0; i<N; i++){
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        }
        
        int ans = 0;
        for(int i=0; i<8; i++){
            ans += colors[i];
        }
        
        if(ans == 0){
            System.out.println(1 + " " + free_color);
        }else{
            System.out.println(ans + " " + (free_color + ans));    
        }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int[] colors = new int[8];
        int free_color = 0;
        
        for(int i=0; i<N; i++){
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        }
        
        int ans = 0;
        for(int i=0; i<8; i++){
            ans += colors[i];
        }
        
        if(ans == 0){
            System.out.println(1 + " " + free_color);
        }else{
            System.out.println(ans + " " + (free_color + ans));    
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int[] colors = new int[8];
        int free_color = 0;
        
        for(int i=0; i<N; i++){
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        }
        
        int ans = 0;
        for(int i=0; i<8; i++){
            ans += colors[i];
        }
        
        if(ans == 0){
            System.out.println(1 + " " + free_color);
        }else{
            System.out.println(ans + " " + (free_color + ans));    
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int[] colors = new int[8];
        int free_color = 0;
        
        for(int i=0; i<N; i++){
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        }
        
        int ans = 0;
        for(int i=0; i<8; i++){
            ans += colors[i];
        }
        
        if(ans == 0){
            System.out.println(1 + " " + free_color);
        }else{
            System.out.println(ans + " " + (free_color + ans));    
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] colors = new int[8]; colors new int[8] 8 int free_color = 0; free_color 0 for(int i=0; i<N; i++){
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        } {
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        } int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(1 <= a && a <= 399){
                colors[0] = 1;
            } 1 <= a && a <= 399 1 <= a 1 a a <= 399 a 399 {
                colors[0] = 1;
            } colors[0] = 1 colors[0] colors 0 1 if(400 <= a && a <= 799){
                colors[1] = 1;
            } 400 <= a && a <= 799 400 <= a 400 a a <= 799 a 799 {
                colors[1] = 1;
            } colors[1] = 1 colors[1] colors 1 1 if(800 <= a && a <= 1199){
                colors[2] = 1;
            } 800 <= a && a <= 1199 800 <= a 800 a a <= 1199 a 1199 {
                colors[2] = 1;
            } colors[2] = 1 colors[2] colors 2 1 if(1200 <= a && a <= 1599){
                colors[3] = 1;
            } 1200 <= a && a <= 1599 1200 <= a 1200 a a <= 1599 a 1599 {
                colors[3] = 1;
            } colors[3] = 1 colors[3] colors 3 1 if(1600 <= a && a <= 1999){
                colors[4] = 1;
            } 1600 <= a && a <= 1999 1600 <= a 1600 a a <= 1999 a 1999 {
                colors[4] = 1;
            } colors[4] = 1 colors[4] colors 4 1 if(2000 <= a && a <= 2399){
                colors[5] = 1;
            } 2000 <= a && a <= 2399 2000 <= a 2000 a a <= 2399 a 2399 {
                colors[5] = 1;
            } colors[5] = 1 colors[5] colors 5 1 if(2400 <= a && a <= 2799){
                colors[6] = 1;
            } 2400 <= a && a <= 2799 2400 <= a 2400 a a <= 2799 a 2799 {
                colors[6] = 1;
            } colors[6] = 1 colors[6] colors 6 1 if(2800 <= a && a <= 3199){
                colors[7] = 1;
            } 2800 <= a && a <= 3199 2800 <= a 2800 a a <= 3199 a 3199 {
                colors[7] = 1;
            } colors[7] = 1 colors[7] colors 7 1 if(3200 <= a){
                free_color++;
            } 3200 <= a 3200 a {
                free_color++;
            } free_color++ free_color int ans = 0; ans 0 for(int i=0; i<8; i++){
            ans += colors[i];
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            ans += colors[i];
        } {
            ans += colors[i];
        } ans += colors[i] ans colors[i] colors i if(ans == 0){
            System.out.println(1 + " " + free_color);
        }else{
            System.out.println(ans + " " + (free_color + ans));    
        } ans == 0 ans 0 {
            System.out.println(1 + " " + free_color);
        } System.out.println(1 + " " + free_color) System.out.println System.out System System.out 1 + " " + free_color 1 + " " + free_color 1 " " free_color {
            System.out.println(ans + " " + (free_color + ans));    
        } System.out.println(ans + " " + (free_color + ans)) System.out.println System.out System System.out ans + " " + (free_color + ans) ans + " " + (free_color + ans) ans " " (free_color + ans) free_color ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int[] colors = new int[8];
        int free_color = 0;
        
        for(int i=0; i<N; i++){
            int a = Integer.parseInt(sc.next());
            if(1 <= a && a <= 399){
                colors[0] = 1;
            }
            if(400 <= a && a <= 799){
                colors[1] = 1;
            }
            if(800 <= a && a <= 1199){
                colors[2] = 1;
            }
            if(1200 <= a && a <= 1599){
                colors[3] = 1;
            }
            if(1600 <= a && a <= 1999){
                colors[4] = 1;
            }
            if(2000 <= a && a <= 2399){
                colors[5] = 1;
            }
            if(2400 <= a && a <= 2799){
                colors[6] = 1;
            }
            if(2800 <= a && a <= 3199){
                colors[7] = 1;
            }
            if(3200 <= a){
                free_color++;
            }
        }
        
        int ans = 0;
        for(int i=0; i<8; i++){
            ans += colors[i];
        }
        
        if(ans == 0){
            System.out.println(1 + " " + free_color);
        }else{
            System.out.println(ans + " " + (free_color + ans));    
        }
    }
}