import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    } main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0}; color {0, 0, 0, 0, 0, 0, 0, 0,0} 0 0 0 0 0 0 0 0 0 int ans = 0 ans 0 ans2 = 0 ans2 0 tmp; tmp for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        } {
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        } tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          } tmp / 400 >= 8 tmp / 400 tmp 400 8 {
            color[8] += 1;
          } color[8] += 1 color[8] color 8 1 {
            color[tmp  / 400] = 1;
          } color[tmp  / 400] = 1 color[tmp  / 400] color tmp  / 400 tmp 400 1 for(int i = 0; i < 8;i++){
          ans += color[i];
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
          ans += color[i];
        } {
          ans += color[i];
        } ans += color[i] ans color[i] color i ans2 = ans + color[8] ans2 ans + color[8] ans color[8] color 8 if(ans == 0){
          ans = 1;
        } ans == 0 ans 0 {
          ans = 1;
        } ans = 1 ans 1 System.out.println(ans + " " + ans2) System.out.println System.out System System.out ans + " " + ans2 ans + " " + ans2 ans " " ans2 String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
        int color[] = {0, 0, 0, 0, 0, 0, 0, 0,0};
        int ans = 0,ans2 = 0,tmp;
        for(int i = 0;i < a;i++){
          tmp = sc.nextInt();
          if(tmp / 400 >= 8){
            color[8] += 1;
          }else{
            color[tmp  / 400] = 1;
          }
        }
        
        for(int i = 0; i < 8;i++){
          ans += color[i];
        }
        ans2 = ans + color[8];
        if(ans == 0){
          ans = 1;
        }
      
        System.out.println(ans + " " + ans2);
    }
}