import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean[] color = new boolean[8]; color new boolean[8] 8 int topcoder = 0; topcoder 0 int ans = 0; ans 0 for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		} {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		} int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			} int j = 1; int j = 1; j 1 j <= 8 j 8 j++ j++ j {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			} {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			} if(rate < j*400) {
					color[j-1] = true;
					break;
				} rate < j*400 rate j*400 j 400 {
					color[j-1] = true;
					break;
				} color[j-1] = true color[j-1] color j-1 j 1 true break; if(rate >= 3200)
				topcoder += 1; rate >= 3200 rate 3200 topcoder += 1 topcoder 1 for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if(color[i])
				ans ++;
		} {
			if(color[i])
				ans ++;
		} if(color[i])
				ans ++; color[i] color i ans ++ ans if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        } ans == 0 ans 0 {
          	System.out.println(1 + " " + topcoder);
              return;
        } System.out.println(1 + " " + topcoder) System.out.println System.out System System.out 1 + " " + topcoder 1 + " " + topcoder 1 " " topcoder return; System.out.println(ans + " " + (ans+topcoder)) System.out.println System.out System System.out ans + " " + (ans+topcoder) ans + " " + (ans+topcoder) ans " " (ans+topcoder) ans topcoder String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean[] color = new boolean[8];
		int topcoder = 0;
		int ans = 0;
		for(int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			for(int j = 1; j <= 8; j++) {
				if(rate < j*400) {
					color[j-1] = true;
					break;
				}
			}
			if(rate >= 3200)
				topcoder += 1;
		}
		for(int i = 0; i < 8; i++) {
			if(color[i])
				ans ++;
		}
      	if(ans == 0){
          	System.out.println(1 + " " + topcoder);
              return;
        }
		System.out.println(ans + " " + (ans+topcoder));
	}

}
