import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} import java.util.*; util.* java public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	} solve {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean[] color = new boolean[8]; color new boolean[8] 8 int n = sc.nextInt() n sc.nextInt() sc.nextInt sc mi=0 mi 0 ma=0; ma 0 while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		} n-->0 n-- n 0 {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a/400>7) ma++;
			else color[a/400]=true; a/400>7 a/400 a 400 7 ma++ ma color[a/400]=true color[a/400] color a/400 a 400 true for (boolean t : color) if (t) mi++; boolean t color if (t) mi++; if (t) mi++; t mi++ mi System.out.println(Math.max(mi,1)+" "+(mi+ma)) System.out.println System.out System System.out Math.max(mi,1)+" "+(mi+ma) Math.max(mi,1)+" "+(mi+ma) Math.max(mi,1) Math.max Math mi 1 " " (mi+ma) mi ma sc.close() sc.close sc public static void main(String args[]) {
		solve();
	} main {
		solve();
	} solve() solve String args[] args public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main
import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

}