import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int blackCnt = 0;
        HashSet<Integer> set = new HashSet<>();
        for(int i = 0; i<n; i++) {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        }
        int min = (set.size() == 0 && blackCnt >= 1)? 1: set.size();
        System.out.println( min+" "+(set.size()+blackCnt));
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int blackCnt = 0;
        HashSet<Integer> set = new HashSet<>();
        for(int i = 0; i<n; i++) {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        }
        int min = (set.size() == 0 && blackCnt >= 1)? 1: set.size();
        System.out.println( min+" "+(set.size()+blackCnt));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int blackCnt = 0;
        HashSet<Integer> set = new HashSet<>();
        for(int i = 0; i<n; i++) {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        }
        int min = (set.size() == 0 && blackCnt >= 1)? 1: set.size();
        System.out.println( min+" "+(set.size()+blackCnt));
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int blackCnt = 0;
        HashSet<Integer> set = new HashSet<>();
        for(int i = 0; i<n; i++) {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        }
        int min = (set.size() == 0 && blackCnt >= 1)? 1: set.size();
        System.out.println( min+" "+(set.size()+blackCnt));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int blackCnt = 0; blackCnt 0 HashSet<Integer> set = new HashSet<>(); set new HashSet<>() for(int i = 0; i<n; i++) {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        } {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 1<=a&&a<=399 1<=a 1 a a<=399 a 399 set.add(0) set.add set 0 if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 400<=a&&a<=799 400<=a 400 a a<=799 a 799 set.add(1) set.add set 1 if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 800<=a&&a<=1199 800<=a 800 a a<=1199 a 1199 set.add(2) set.add set 2 if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 1200<=a&&a<=1599 1200<=a 1200 a a<=1599 a 1599 set.add(3) set.add set 3 if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 1600<=a&&a<=1999 1600<=a 1600 a a<=1999 a 1999 set.add(4) set.add set 4 if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 2000<=a&&a<=2399 2000<=a 2000 a a<=2399 a 2399 set.add(5) set.add set 5 if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 2400<=a&&a<=2799 2400<=a 2400 a a<=2799 a 2799 set.add(6) set.add set 6 if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++; 2800<=a&&a<=3199 2800<=a 2800 a a<=3199 a 3199 set.add(7) set.add set 7 blackCnt++ blackCnt int min = (set.size() == 0 && blackCnt >= 1)? 1: set.size(); min (set.size() == 0 && blackCnt >= 1)? 1: set.size() (set.size() == 0 && blackCnt >= 1) set.size() == 0 set.size() set.size set 0 blackCnt >= 1 blackCnt 1 1 set.size() set.size set System.out.println( min+" "+(set.size()+blackCnt)) System.out.println System.out System System.out min+" "+(set.size()+blackCnt) min+" "+(set.size()+blackCnt) min " " (set.size()+blackCnt) set.size() set.size set blackCnt String[] args args
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int blackCnt = 0;
        HashSet<Integer> set = new HashSet<>();
        for(int i = 0; i<n; i++) {
            int a = sc.nextInt();
            if(1<=a&&a<=399) set.add(0);
            else if(400<=a&&a<=799) set.add(1);
            else if(800<=a&&a<=1199) set.add(2);
            else if(1200<=a&&a<=1599) set.add(3);
            else if(1600<=a&&a<=1999) set.add(4);
            else if(2000<=a&&a<=2399) set.add(5);
            else if(2400<=a&&a<=2799) set.add(6);
            else if(2800<=a&&a<=3199) set.add(7);
            else blackCnt++;
        }
        int min = (set.size() == 0 && blackCnt >= 1)? 1: set.size();
        System.out.println( min+" "+(set.size()+blackCnt));
    }
}