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

public class Main {
    int n;
    int[] brackets;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    int n;
    int[] brackets;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
} Main int n; n int[] brackets; brackets public static void main(String args[]) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String args[] args void run() {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    } run {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    } FastReader sc = new FastReader(); sc new FastReader() n = sc.nextInt() n sc.nextInt() sc.nextInt sc brackets = new int[9] brackets new int[9] 9 for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        } {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 400 a 400 {
                brackets[0]++;
            } brackets[0]++ brackets[0] brackets 0 if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 800 a 800 {
                brackets[1]++;
            } brackets[1]++ brackets[1] brackets 1 if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 1200 a 1200 {
                brackets[2]++;
            } brackets[2]++ brackets[2] brackets 2 if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 1600 a 1600 {
                brackets[3]++;
            } brackets[3]++ brackets[3] brackets 3 if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 2000 a 2000 {
                brackets[4]++;
            } brackets[4]++ brackets[4] brackets 4 if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 2400 a 2400 {
                brackets[5]++;
            } brackets[5]++ brackets[5] brackets 5 if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 2800 a 2800 {
                brackets[6]++;
            } brackets[6]++ brackets[6] brackets 6 if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            } a < 3200 a 3200 {
                brackets[7]++;
            } brackets[7]++ brackets[7] brackets 7 {
                brackets[8]++;
            } brackets[8]++ brackets[8] brackets 8 int count = 0; count 0 for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (brackets[i] > 0) {
                count++;
            }
        } {
            if (brackets[i] > 0) {
                count++;
            }
        } if (brackets[i] > 0) {
                count++;
            } brackets[i] > 0 brackets[i] brackets i 0 {
                count++;
            } count++ count int min = count; min count if (min == 0) {
            min = 1;
        } min == 0 min 0 {
            min = 1;
        } min = 1 min 1 int max = count + brackets[8]; max count + brackets[8] count brackets[8] brackets 8 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        } FastReader {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        } br = new BufferedReader(new
                    InputStreamReader(System.in)) br new BufferedReader(new
                    InputStreamReader(System.in)) String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            } try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                } catch (IOException e)
                {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt()
        {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong()
        {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble()
        {
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            } catch (IOException e)
            {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                str = br.readLine();
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main {
    int n;
    int[] brackets;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
} public class Main {
    int n;
    int[] brackets;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    int n;
    int[] brackets;

    public static void main(String args[]) {
        new Main().run();
    }

    void run() {
        FastReader sc = new FastReader();
        n = sc.nextInt();
        brackets = new int[9];
        for (int i = 0; i < n; i++) {
            int a = sc.nextInt();
            if (a < 400) {
                brackets[0]++;
            } else if (a < 800) {
                brackets[1]++;
            } else if (a < 1200) {
                brackets[2]++;
            } else if (a < 1600) {
                brackets[3]++;
            } else if (a < 2000) {
                brackets[4]++;
            } else if (a < 2400) {
                brackets[5]++;
            } else if (a < 2800) {
                brackets[6]++;
            } else if (a < 3200) {
                brackets[7]++;
            } else {
                brackets[8]++;
            }
        }
        int count = 0;
        for (int i = 0; i < 8; i++) {
            if (brackets[i] > 0) {
                count++;
            }
        }
        int min = count;
        if (min == 0) {
            min = 1;
        }
        int max = count + brackets[8];
        System.out.println(min + " " + max);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}
