import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    private static final int MAX_COLOR = 8;
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    private static final int MAX_COLOR = 8;
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    }
} Main private static final int MAX_COLOR = 8; MAX_COLOR 8 public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    } main {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    } try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       } catch (IOException e) {
            e.printStackTrace();
       } IOException e {
            e.printStackTrace();
       } e.printStackTrace() e.printStackTrace e {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String strArr[] = br.readLine().split(" "); strArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int colArr[] = new int[MAX_COLOR + 1]; colArr new int[MAX_COLOR + 1] MAX_COLOR + 1 MAX_COLOR 1 for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            } {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            } int tmp = Integer.parseInt(strArr[i]); tmp Integer.parseInt(strArr[i]) Integer.parseInt Integer strArr[i] strArr i if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 1 && tmp <= 399 tmp >= 1 tmp 1 tmp <= 399 tmp 399 {
                    colArr[0]++;
                } colArr[0]++ colArr[0] colArr 0 if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 400 && tmp <= 799 tmp >= 400 tmp 400 tmp <= 799 tmp 799 {
                    colArr[1]++;
                } colArr[1]++ colArr[1] colArr 1 if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 800 && tmp <= 1199 tmp >= 800 tmp 800 tmp <= 1199 tmp 1199 {
                    colArr[2]++;
                } colArr[2]++ colArr[2] colArr 2 if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 1200 && tmp <= 1599 tmp >= 1200 tmp 1200 tmp <= 1599 tmp 1599 {
                    colArr[3]++;
                } colArr[3]++ colArr[3] colArr 3 if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 1600 && tmp <= 1999 tmp >= 1600 tmp 1600 tmp <= 1999 tmp 1999 {
                    colArr[4]++;
                } colArr[4]++ colArr[4] colArr 4 if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 2000 && tmp <= 2399 tmp >= 2000 tmp 2000 tmp <= 2399 tmp 2399 {
                    colArr[5]++;
                } colArr[5]++ colArr[5] colArr 5 if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 2400 && tmp <= 2799 tmp >= 2400 tmp 2400 tmp <= 2799 tmp 2799 {
                    colArr[6]++;
                } colArr[6]++ colArr[6] colArr 6 if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                } tmp >= 2800 && tmp <= 3199 tmp >= 2800 tmp 2800 tmp <= 3199 tmp 3199 {
                    colArr[7]++;
                } colArr[7]++ colArr[7] colArr 7 {
                    colArr[8]++;
                } colArr[8]++ colArr[8] colArr 8 int min = 0; min 0 for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            } int i = 0; int i = 0; i 0 i < MAX_COLOR i MAX_COLOR i++ i++ i {
                if (colArr[i] > 0) {
                    min++;
                }
            } {
                if (colArr[i] > 0) {
                    min++;
                }
            } if (colArr[i] > 0) {
                    min++;
                } colArr[i] > 0 colArr[i] colArr i 0 {
                    min++;
                } min++ min int max = 0; max 0 if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            } colArr[8] > 0 colArr[8] colArr 8 0 {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                } min == 0 min 0 {
                    min++;
                    max = colArr[8];
                } min++ min max = colArr[8] max colArr[8] colArr 8 {
                    max = colArr[8] + min;
                } max = colArr[8] + min max colArr[8] + min colArr[8] colArr 8 min {
                max = min;
            } max = min max 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 {
    private static final int MAX_COLOR = 8;
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    }
} public class Main {
    private static final int MAX_COLOR = 8;
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    private static final int MAX_COLOR = 8;
    public static void main(String[] args) {
        try {
            // 標準入力
            InputStreamReader isr = new InputStreamReader(System.in);
            BufferedReader br = new BufferedReader(isr);
            int n = Integer.parseInt(br.readLine());
            String strArr[] = br.readLine().split(" ");
            int colArr[] = new int[MAX_COLOR + 1];
            for (int i = 0; i < n; i++) {
                int tmp = Integer.parseInt(strArr[i]);
                if (tmp >= 1 && tmp <= 399) {
                    colArr[0]++;
                } else if (tmp >= 400 && tmp <= 799) {
                    colArr[1]++;
                } else if (tmp >= 800 && tmp <= 1199) {
                    colArr[2]++;
                } else if (tmp >= 1200 && tmp <= 1599) {
                    colArr[3]++;
                } else if (tmp >= 1600 && tmp <= 1999) {
                    colArr[4]++;
                } else if (tmp >= 2000 && tmp <= 2399) {
                    colArr[5]++;
                } else if (tmp >= 2400 && tmp <= 2799) {
                    colArr[6]++;
                } else if (tmp >= 2800 && tmp <= 3199) {
                    colArr[7]++;
                } else {
                    colArr[8]++;
                }
            }
            int min = 0;
            for (int i = 0; i < MAX_COLOR; i++) {
                if (colArr[i] > 0) {
                    min++;
                }
            }
            int max = 0;
            if (colArr[8] > 0) {
                if (min == 0) {
                    min++;
                    max = colArr[8];
                } else {
                    max = colArr[8] + min;
                }
            } else {
                max = min;
            }
            System.out.println(min + " " + max);
       } catch (IOException e) {
            e.printStackTrace();
       }
    }
}
