import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] color = new int[9]; color new int[9] 9 int ans = 0; ans 0 for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		} {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc color[Math.min(a/400, 8)]++ color[Math.min(a/400, 8)] color Math.min(a/400, 8) Math.min Math a/400 a 400 8 for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if(color[i] > 0) ans++;
		} {
			if(color[i] > 0) ans++;
		} if(color[i] > 0) ans++; color[i] > 0 color[i] color i 0 ans++ ans int ans2 = ans + color[8]; ans2 ans + color[8] ans color[8] color 8 if(ans == 0 && color[8] > 0) ans = 1; ans == 0 && color[8] > 0 ans == 0 ans 0 color[8] > 0 color[8] color 8 0 ans = 1 ans 1 System.out.printf("%d %d", ans, ans2) System.out.printf System.out System System.out "%d %d" ans ans2 sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] color = new int[9];
		int ans = 0;

		for(int i = 0; i < n; i++) {
			int a = sc.nextInt();
			color[Math.min(a/400, 8)]++;
		}

		for(int i = 0; i < 8; i++) {
			if(color[i] > 0) ans++;
		}
		int ans2 = ans + color[8];
		if(ans == 0 && color[8] > 0) ans = 1;
		System.out.printf("%d %d", ans, ans2);
		sc.close();
	}
}