
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	} main {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) int N = reader.nextInt(); N reader.nextInt() reader.nextInt reader String remain = "01234567"; remain "01234567" int over = 0; over 0 for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		} {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		} int num = reader.nextInt()/400; num reader.nextInt()/400 reader.nextInt() reader.nextInt reader 400 if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			} num < 8 num 8 {
				remain = remain.replace(Integer.toString(num), "");
			} remain = remain.replace(Integer.toString(num), "") remain remain.replace(Integer.toString(num), "") remain.replace remain Integer.toString(num) Integer.toString Integer num "" {
				over++;
			} over++ over int min = 8 - remain.length(); min 8 - remain.length() 8 remain.length() remain.length remain int max = min + over; max min + over min over if (min < 1) {
			min = 1;
		} min < 1 min 1 {
			min = 1;
		} min = 1 min 1 reader.close() reader.close reader System.out.print(min + " " + max) System.out.print System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		String remain = "01234567";
		int over = 0;
		for (int i = 0; i < N; i++) {
			int num = reader.nextInt()/400;
			if (num < 8) {
				remain = remain.replace(Integer.toString(num), "");
			} else {
				over++;
			}
		}
		int min = 8 - remain.length();
		int max = min + over;
		if (min < 1) {
			min = 1;
		}

		reader.close();
		System.out.print(min + " " + max);
	}
}

