import java.util.*;

public class Main {
  public static void main(String[] srgs) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] srgs) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  }
} Main public static void main(String[] srgs) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] rating = new int[n]; rating new int[n] n int[] number = new int[9]; number new int[9] 9 for(int i = 0; i < 9; i++) number[i] = 0; int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i number[i] = 0; number[i] = 0 number[i] number i 0 for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    } {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    } rating[i] = Integer.parseInt(sc.next()) rating[i] rating i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc number[Math.min(rating[i]/400, 8)]++ number[Math.min(rating[i]/400, 8)] number Math.min(rating[i]/400, 8) Math.min Math rating[i]/400 rating[i] rating i 400 8 int min = 0; min 0 for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if(number[i] != 0) min++;
    } {
      if(number[i] != 0) min++;
    } if(number[i] != 0) min++; number[i] != 0 number[i] number i 0 min++ min if(min == 0) {
      min = 1;
      number[8]--;
    } min == 0 min 0 {
      min = 1;
      number[8]--;
    } min = 1 min 1 number[8]-- number[8] number 8 System.out.print(min + " ") System.out.print System.out System System.out min + " " min " " int max = min + number[8]; max min + number[8] min number[8] number 8 System.out.println(max) System.out.println System.out System System.out max String[] srgs srgs public class Main {
  public static void main(String[] srgs) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  }
} public class Main {
  public static void main(String[] srgs) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] srgs) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.next());
    int[] rating = new int[n];
    int[] number = new int[9];
    for(int i = 0; i < 9; i++) number[i] = 0;
    for(int i = 0; i < n; i++) {
      rating[i] = Integer.parseInt(sc.next());
      number[Math.min(rating[i]/400, 8)]++;
    }
    int min = 0;
    for(int i = 0; i < 8; i++) {
      if(number[i] != 0) min++;
    }
    if(min == 0) {
      min = 1;
      number[8]--;
    }
    System.out.print(min + " ");
    int max = min + number[8];
    System.out.println(max);
  }
}
