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[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    }    
} 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[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    }    
} Main public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0}; m {0, 0, 0, 0, 0, 0, 0, 0, 0} 0 0 0 0 0 0 0 0 0 int c = 0; c 0 for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        } {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        } int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            } int j = 0; int j = 0; j 0 j < 8 j 8 j++ j++ j {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            } {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            } if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                } 3200 <= rate 3200 rate {
                    m[8]++;
                    break;
                } m[8]++ m[8] m 8 break; if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                } j * 400 <= rate && rate < (j + 1) * 400 j * 400 <= rate j * 400 j 400 rate rate < (j + 1) * 400 rate (j + 1) * 400 (j + 1) j 1 400 {
                    m[j]++;
                } m[j]++ m[j] m j int count = 0; count 0 for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (!(m[i] == 0)) {
                count++;
            }
        } {
            if (!(m[i] == 0)) {
                count++;
            }
        } if (!(m[i] == 0)) {
                count++;
            } !(m[i] == 0) (m[i] == 0) m[i] m i 0 {
                count++;
            } count++ count if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        } m[8] == 0 m[8] m 8 0 {
             System.out.println(count + " " + count);
        } System.out.println(count + " " + count) System.out.println System.out System System.out count + " " + count count + " " + count count " " count {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        } if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            } count == 0 count 0 {
                System.out.println("1 " + (count + m[8]));
            } System.out.println("1 " + (count + m[8])) System.out.println System.out System System.out "1 " + (count + m[8]) "1 " (count + m[8]) count m[8] m 8 {
                System.out.println(count + " " + (count + m[8]));
            } System.out.println(count + " " + (count + m[8])) System.out.println System.out System System.out count + " " + (count + m[8]) count + " " + (count + m[8]) count " " (count + m[8]) count m[8] m 8 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[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    }    
} public class Main{
    public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    }    
} 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[] m = {0, 0, 0, 0, 0, 0, 0, 0, 0};
        int c = 0;
        for (int i = 0; i < n; i++) {
            int rate = sc.nextInt();
            for (int j = 0; j < 8; j++) {
                if (3200 <= rate) {
                    m[8]++;
                    break;
                } else if (j * 400 <= rate && rate < (j + 1) * 400) {
                    m[j]++;
                }
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (!(m[i] == 0)) {
                count++;
            }
        }
        if (m[8] == 0) {
             System.out.println(count + " " + count);
        } else {
            if (count == 0) {
                System.out.println("1 " + (count + m[8]));
            } else {
                System.out.println(count + " " + (count + m[8]));
            }
        }
    }    
}
