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];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	}
} 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];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	} 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 for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		} {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a >= 3200) color[8]++;
			else color[a / 400]++; a >= 3200 a 3200 color[8]++ color[8] color 8 color[a / 400]++ color[a / 400] color a / 400 a 400 int min = 0; min 0 for(int i = 0; i < 8; i++) if(color[i] > 0) min++; int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i if(color[i] > 0) min++; if(color[i] > 0) min++; color[i] > 0 color[i] color i 0 min++ min System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min)) System.out.println System.out System System.out (min == 0 ? 1 : min) + " " + (color[8] + min) (min == 0 ? 1 : min) + " " + (color[8] + min) (min == 0 ? 1 : min) min == 0 min 0 1 min " " (color[8] + min) color[8] color 8 min 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];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] color = new int[9];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	}
} 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];
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a >= 3200) color[8]++;
			else color[a / 400]++;
		}
		int min = 0;
		for(int i = 0; i < 8; i++) if(color[i] > 0) min++;
		System.out.println((min == 0 ? 1 : min) + " " + (color[8] + min));
	}
}
