import java.util.*;

public class Main{ // Main
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	}
} import java.util.*; util.* java public class Main{ // Main
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner Set<Integer> fixed = new HashSet<>(); fixed new HashSet<>() int free = 0; free 0 for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		} {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		} int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			} a / 400 < 8 a / 400 a 400 8 {
				fixed.add(a / 400);
			} fixed.add(a / 400) fixed.add fixed a / 400 a 400 {
				free ++;
			} free ++ free int min = 0; min 0 int max = 0; max 0 if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		} fixed.isEmpty() fixed.isEmpty fixed {
			min = 1;
			max = free;
		} min = 1 min 1 max = free max free {
			min = fixed.size();
			max = min + free;			
		} min = fixed.size() min fixed.size() fixed.size fixed max = min + free max min + free min free System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max scanner.close() scanner.close scanner String[] args args public class Main{ // Main
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	}
} public class Main{ // Main
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	}
} Main
import java.util.*;

public class Main{ // Main
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		Set<Integer> fixed = new HashSet<>();
		int free = 0;
		for(int i = 0; i < n; i ++) {
			int a = scanner.nextInt();
			if(a / 400 < 8) {
				fixed.add(a / 400);
			} else {
				free ++;
			}
		}
		int min = 0;
		int max = 0;
		if(fixed.isEmpty()) {
			min = 1;
			max = free;
		} else {
			min = fixed.size();
			max = min + free;			
		}
		System.out.println(min + " " + max);
		
		scanner.close();
	}
}