import java.util.*;
public class Main{

  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  }
} import java.util.*; util.* java public class Main{

  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  } main {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] types = new int[9]; types new int[9] 9 int maxCnt = 0; maxCnt 0 for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      } {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      } int score = sc.nextInt(); score sc.nextInt() sc.nextInt sc int idx = Math.min(score/400, 8); idx Math.min(score/400, 8) Math.min Math score/400 score 400 8 types[idx]++ types[idx] types idx int min = 0; min 0 int max = 0; max 0 for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      } int i = 0; int i = 0; i 0 i < types.length - 1 i types.length - 1 types.length types types.length 1 i++ i++ i {
        if(types[i] > 0) {
          max++;
          min++;
        }
      } {
        if(types[i] > 0) {
          max++;
          min++;
        }
      } if(types[i] > 0) {
          max++;
          min++;
        } types[i] > 0 types[i] types i 0 {
          max++;
          min++;
        } max++ max min++ min max += types[8] max types[8] types 8 if(min == 0) min = 1; min == 0 min 0 min = 1 min 1 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main{

  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  }
} public class Main{

  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  }
} Main
import java.util.*;
public class Main{

  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      int[] types = new int[9];
      int maxCnt = 0;
      for(int i = 0; i < n; i++) {
        int score = sc.nextInt();
        int idx = Math.min(score/400, 8);
        types[idx]++;
      }
      int min = 0;
      int max = 0;
      for(int i = 0; i < types.length - 1; i++) {
        if(types[i] > 0) {
          max++;
          min++;
        }
      }
      max += types[8];
      if(min == 0) min = 1;
      System.out.println(min + " " + max);
  }
}
