import java.util.Scanner;

/**
 * https://abc064.contest.atcoder.jp/tasks/abc064_c
 */
public class Main {

	public static void main(String[] args) {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	}

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

	public static void main(String[] args) {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	}

} Main public static void main(String[] args) {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	} main {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	} int[] kind = new int[9]; kind new int[9] 9 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		} {
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc kind[Math.min(8,c/400)]++ kind[Math.min(8,c/400)] kind Math.min(8,c/400) Math.min Math 8 c/400 c 400 sc.close() sc.close sc int ans = 0; ans 0 for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(kind[i]>0){
				ans++;
			}
		} {
			if(kind[i]>0){
				ans++;
			}
		} if(kind[i]>0){
				ans++;
			} kind[i]>0 kind[i] kind i 0 {
				ans++;
			} ans++ ans int min = Math.max(1, ans); min Math.max(1, ans) Math.max Math 1 ans int max = ans+kind[8]; max ans+kind[8] ans kind[8] kind 8 System.out.println(String.format("%d %d", min, max)) System.out.println System.out System System.out String.format("%d %d", min, max) String.format String "%d %d" min max String[] args args public class Main {

	public static void main(String[] args) {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	}

} public class Main {

	public static void main(String[] args) {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	}

} Main
import java.util.Scanner;

/**
 * https://abc064.contest.atcoder.jp/tasks/abc064_c
 */
public class Main {

	public static void main(String[] args) {
		
		int[] kind = new int[9];
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i=0; i<N; i++){
			int c = sc.nextInt();
			kind[Math.min(8,c/400)]++;
		}
		sc.close();
		
		int ans = 0;
		for(int i=0; i<8; i++){
			if(kind[i]>0){
				ans++;
			}
		}		
		int min = Math.max(1, ans);
		int max = ans+kind[8];
		System.out.println(String.format("%d %d", min, max));

	}

}
