import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        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 colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        System.out.println(min + " " + max);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        System.out.println(min + " " + max);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        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 colorCount = 0; colorCount 0 int otherCount = 0; otherCount 0 int gray   = 0; gray 0 int brown  = 0; brown 0 int green  = 0; green 0 int water  = 0; water 0 int blue   = 0; blue 0 int yellow = 0; yellow 0 int orange = 0; orange 0 int red    = 0; red 0 for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        } {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } num < 400 num 400 {
                if (gray == 0) colorCount++;
                gray = 1;
            } if (gray == 0) colorCount++; gray == 0 gray 0 colorCount++ colorCount gray = 1 gray 1 if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 400 <= num && num < 800 400 <= num 400 num num < 800 num 800 {
                if (brown == 0) colorCount++;
                brown = 1;
            } if (brown == 0) colorCount++; brown == 0 brown 0 colorCount++ colorCount brown = 1 brown 1 if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 800 <= num && num < 1200 800 <= num 800 num num < 1200 num 1200 {
                if (green == 0) colorCount++;
                green = 1;
            } if (green == 0) colorCount++; green == 0 green 0 colorCount++ colorCount green = 1 green 1 if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 1200 <= num && num < 1600 1200 <= num 1200 num num < 1600 num 1600 {
                if (water == 0) colorCount++;
                water = 1;
            } if (water == 0) colorCount++; water == 0 water 0 colorCount++ colorCount water = 1 water 1 if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 1600 <= num && num < 2000 1600 <= num 1600 num num < 2000 num 2000 {
                if (blue == 0) colorCount++;
                blue = 1;
            } if (blue == 0) colorCount++; blue == 0 blue 0 colorCount++ colorCount blue = 1 blue 1 if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 2000 <= num && num < 2400 2000 <= num 2000 num num < 2400 num 2400 {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } if (yellow == 0) colorCount++; yellow == 0 yellow 0 colorCount++ colorCount yellow = 1 yellow 1 if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 2400 <= num && num < 2800 2400 <= num 2400 num num < 2800 num 2800 {
                if (orange == 0) colorCount++;
                orange = 1;
            } if (orange == 0) colorCount++; orange == 0 orange 0 colorCount++ colorCount orange = 1 orange 1 if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            } 2800 <= num && num < 3200 2800 <= num 2800 num num < 3200 num 3200 {
                if (red == 0) colorCount++;
                red = 1;
            } if (red == 0) colorCount++; red == 0 red 0 colorCount++ colorCount red = 1 red 1 {
                otherCount++;
            } otherCount++ otherCount int max = colorCount + otherCount max colorCount + otherCount colorCount otherCount min = colorCount; min colorCount if (min == 0) min++; min == 0 min 0 min++ min 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 colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        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 colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        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 colorCount = 0;
        int otherCount = 0;
        int gray   = 0;
        int brown  = 0;
        int green  = 0;
        int water  = 0;
        int blue   = 0;
        int yellow = 0;
        int orange = 0;
        int red    = 0;
        for(int i = 0; i < n; i++) {
            int num = sc.nextInt();
            if(num < 400) {
                if (gray == 0) colorCount++;
                gray = 1;
            } else if (400 <= num && num < 800) {
                if (brown == 0) colorCount++;
                brown = 1;
            } else if (800 <= num && num < 1200) {
                if (green == 0) colorCount++;
                green = 1;
            } else if (1200 <= num && num < 1600) {
                if (water == 0) colorCount++;
                water = 1;
            } else if (1600 <= num && num < 2000) {
                if (blue == 0) colorCount++;
                blue = 1;
            } else if (2000 <= num && num < 2400) {
                if (yellow == 0) colorCount++;
                yellow = 1;
            } else if (2400 <= num && num < 2800) {
                if (orange == 0) colorCount++;
                orange = 1;
            } else if (2800 <= num && num < 3200) {
                if (red == 0) colorCount++;
                red = 1;
            } else {
                otherCount++;
            }
        }
        int max = colorCount + otherCount, min = colorCount;
        if (min == 0) min++;
        System.out.println(min + " " + max);
    }
}