import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Echizen
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) TaskC solver = new TaskC(); solver new TaskC() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        }

    } TaskC public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        } solve {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        } int t; t boolean gray = false; gray false boolean brown = false; brown false boolean green = false; green false boolean cyan = false; cyan false boolean blue = false; blue false boolean yellow = false; yellow false boolean orange = false; orange false boolean red = false; red false t = in.nextInt() t in.nextInt() in.nextInt in int[] arr = new int[t]; arr new int[t] t int cout = 0; cout 0 for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            } int i = 0; int i = 0; i 0 i < t i t i++ i++ i {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            } {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            } arr[i] = in.nextInt() arr[i] arr i in.nextInt() in.nextInt in if (arr[i] > 3199) {
                    cout += 1;
                } arr[i] > 3199 arr[i] arr i 3199 {
                    cout += 1;
                } cout += 1 cout 1 int count_min = 0 count_min 0 count_max = 0; count_max 0 for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            } {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            } if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 1 && arr[i] <= 399 && gray == false arr[i] >= 1 && arr[i] <= 399 && gray == false arr[i] >= 1 arr[i] arr i 1 arr[i] <= 399 arr[i] arr i 399 gray == false gray false {
                    gray = true;
                    count_min += 1;
                } gray = true gray true count_min += 1 count_min 1 if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 400 && arr[i] <= 799 && brown == false arr[i] >= 400 && arr[i] <= 799 && brown == false arr[i] >= 400 arr[i] arr i 400 arr[i] <= 799 arr[i] arr i 799 brown == false brown false {
                    brown = true;
                    count_min += 1;
                } brown = true brown true count_min += 1 count_min 1 if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 800 && arr[i] <= 1199 && green == false arr[i] >= 800 && arr[i] <= 1199 && green == false arr[i] >= 800 arr[i] arr i 800 arr[i] <= 1199 arr[i] arr i 1199 green == false green false {
                    green = true;
                    count_min += 1;
                } green = true green true count_min += 1 count_min 1 if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 1200 && arr[i] <= 1599 && cyan == false arr[i] >= 1200 && arr[i] <= 1599 && cyan == false arr[i] >= 1200 arr[i] arr i 1200 arr[i] <= 1599 arr[i] arr i 1599 cyan == false cyan false {
                    cyan = true;
                    count_min += 1;
                } cyan = true cyan true count_min += 1 count_min 1 if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 1600 && arr[i] <= 1999 && blue == false arr[i] >= 1600 && arr[i] <= 1999 && blue == false arr[i] >= 1600 arr[i] arr i 1600 arr[i] <= 1999 arr[i] arr i 1999 blue == false blue false {
                    blue = true;
                    count_min += 1;
                } blue = true blue true count_min += 1 count_min 1 if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 2000 && arr[i] <= 2399 && yellow == false arr[i] >= 2000 && arr[i] <= 2399 && yellow == false arr[i] >= 2000 arr[i] arr i 2000 arr[i] <= 2399 arr[i] arr i 2399 yellow == false yellow false {
                    yellow = true;
                    count_min += 1;
                } yellow = true yellow true count_min += 1 count_min 1 if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 2400 && arr[i] <= 2799 && orange == false arr[i] >= 2400 && arr[i] <= 2799 && orange == false arr[i] >= 2400 arr[i] arr i 2400 arr[i] <= 2799 arr[i] arr i 2799 orange == false orange false {
                    orange = true;
                    count_min += 1;
                } orange = true orange true count_min += 1 count_min 1 if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                } arr[i] >= 2800 && arr[i] <= 3199 && red == false arr[i] >= 2800 && arr[i] <= 3199 && red == false arr[i] >= 2800 arr[i] arr i 2800 arr[i] <= 3199 arr[i] arr i 3199 red == false red false {
                    red = true;
                    count_min += 1;
                } red = true red true count_min += 1 count_min 1 out.println(count_min == 0 ? 1 : count_min) out.println out count_min == 0 ? 1 : count_min count_min == 0 count_min 0 1 count_min out.println(count_min + cout) out.println out count_min + cout count_min cout int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Echizen
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int t;
            /**
             * Rating 1-399 : gray
             Rating 400-799 : brown
             Rating 800-1199 : green
             Rating 1200-1599 : cyan
             Rating 1600-1999 : blue
             Rating 2000-2399 : yellow
             Rating 2400-2799 : orange
             Rating 2800-3199 : red
             */
            boolean gray = false;
            boolean brown = false;
            boolean green = false;
            boolean cyan = false;
            boolean blue = false;
            boolean yellow = false;
            boolean orange = false;
            boolean red = false;
            t = in.nextInt();
            int[] arr = new int[t];
            int cout = 0;
            for (int i = 0; i < t; i++) {
                arr[i] = in.nextInt();
                if (arr[i] > 3199) {
                    cout += 1;
                }
            }
            int count_min = 0, count_max = 0;
            for (int i = 0; i < arr.length; i++) {
                if (arr[i] >= 1 && arr[i] <= 399 && gray == false) {
                    gray = true;
                    count_min += 1;
                } else if (arr[i] >= 400 && arr[i] <= 799 && brown == false) {
                    brown = true;
                    count_min += 1;
                } else if (arr[i] >= 800 && arr[i] <= 1199 && green == false) {
                    green = true;
                    count_min += 1;
                } else if (arr[i] >= 1200 && arr[i] <= 1599 && cyan == false) {
                    cyan = true;
                    count_min += 1;
                } else if (arr[i] >= 1600 && arr[i] <= 1999 && blue == false) {
                    blue = true;
                    count_min += 1;
                } else if (arr[i] >= 2000 && arr[i] <= 2399 && yellow == false) {
                    yellow = true;
                    count_min += 1;
                } else if (arr[i] >= 2400 && arr[i] <= 2799 && orange == false) {
                    orange = true;
                    count_min += 1;
                } else if (arr[i] >= 2800 && arr[i] <= 3199 && red == false) {
                    red = true;
                    count_min += 1;
                }
            }
            out.println(count_min == 0 ? 1 : count_min);
            out.println(count_min + cout);
        }

    }
}

