import java.util.Scanner;

public class Main {
    static int n;
    static int[] dp;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static int n;
    static int[] dp;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    }
} Main static int n; n static int[] dp; dp public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    } main {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc dp = new int[9] dp new int[9] 9 int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        } {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        } int color = Math.min(8, sc.nextInt()/400); color Math.min(8, sc.nextInt()/400) Math.min Math 8 sc.nextInt()/400 sc.nextInt() sc.nextInt sc 400 dp[color]++ dp[color] dp color for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (dp[i] != 0) {
                ans++;
            }
        } {
            if (dp[i] != 0) {
                ans++;
            }
        } if (dp[i] != 0) {
                ans++;
            } dp[i] != 0 dp[i] dp i 0 {
                ans++;
            } ans++ ans System.out.println(Math.max(1, ans) + " " + (ans + dp[8])) System.out.println System.out System System.out Math.max(1, ans) + " " + (ans + dp[8]) Math.max(1, ans) + " " + (ans + dp[8]) Math.max(1, ans) Math.max Math 1 ans " " (ans + dp[8]) ans dp[8] dp 8 String[] args args public class Main {
    static int n;
    static int[] dp;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    }
} public class Main {
    static int n;
    static int[] dp;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    }
} Main
import java.util.Scanner;

public class Main {
    static int n;
    static int[] dp;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        dp = new int[9]; //0:灰色～7:赤 8:それ以上
        int ans = 0;

        for (int i = 0; i < n; i++) {
            int color = Math.min(8, sc.nextInt()/400);
            dp[color]++;
        }
        for (int i = 0; i < 8; i++) {
            if (dp[i] != 0) {
                ans++;
            }
        }
        System.out.println(Math.max(1, ans) + " " + (ans + dp[8]));
    }
}
