import java.util.Scanner;
import java.util.Arrays;

public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(min, 1);
    System.out.println(min + " " + max);
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(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[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(min, 1);
    System.out.println(min + " " + max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(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[] color = new int[8]; color new int[8] 8 int min =0 min 0 max =0 max 0 expert =0; expert 0 for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    } int i =0; int i =0; i 0 i<N i N i++ i++ i {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    } {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 3200 x 3200 {
        expert++;
      } expert++ expert if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 2800 x 2800 {
        color[7]++;
      } color[7]++ color[7] color 7 if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 2400 x 2400 {
        color[6]++;
      } color[6]++ color[6] color 6 if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 2000 x 2000 {
        color[5]++;
      } color[5]++ color[5] color 5 if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 1600 x 1600 {
        color[4]++;
      } color[4]++ color[4] color 4 if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 1200 x 1200 {
        color[3]++;
      } color[3]++ color[3] color 3 if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 800 x 800 {
        color[2]++;
      } color[2]++ color[2] color 2 if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      } x >= 400 x 400 {
        color[1]++;
      } color[1]++ color[1] color 1 {
        color[0]++;
      } color[0]++ color[0] color 0 for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    } int i =0; int i =0; i 0 i<8 i 8 i++ i++ i {
      if (color[i] != 0) min++;
    } {
      if (color[i] != 0) min++;
    } if (color[i] != 0) min++; color[i] != 0 color[i] color i 0 min++ min max = min + expert max min + expert min expert min = Math.max(min, 1) min Math.max(min, 1) Math.max Math 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[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(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[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(min, 1);
    System.out.println(min + " " + max);
  }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] color = new int[8];
    int min =0, max =0, expert =0;
    for (int i =0; i<N; i++) {
      int x = sc.nextInt();
      if (x >= 3200) {
        expert++;
      } else if (x >= 2800) {
        color[7]++;
      } else if (x >= 2400) {
        color[6]++;
      } else if (x >= 2000) {
        color[5]++;
      } else if (x >= 1600) {
        color[4]++;
      } else if (x >= 1200) {
        color[3]++;
      } else if (x >= 800) {
        color[2]++;
      } else if (x >= 400) {
        color[1]++;
      } else {
        color[0]++;
      }
    }
    for (int i =0; i<8; i++) {
      if (color[i] != 0) min++;
    }
    max = min + expert;
    min = Math.max(min, 1);
    System.out.println(min + " " + max);
  }
}