import 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 strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    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[] color = new int[8];
    int strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    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 strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    System.out.println(min + " " + max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[] color = new int[8];
    int strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    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 strong = 0; strong 0 for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    } {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int c = -1; c -1 1 if(a < 400) c = 0; a < 400 a 400 c = 0 c 0 if((a >= 400) && (a < 800)) c = 1; (a >= 400) && (a < 800) (a >= 400) a 400 (a < 800) a 800 c = 1 c 1 if((a >= 800) && (a < 1200)) c = 2; (a >= 800) && (a < 1200) (a >= 800) a 800 (a < 1200) a 1200 c = 2 c 2 if((a >= 1200) && (a < 1600)) c = 3; (a >= 1200) && (a < 1600) (a >= 1200) a 1200 (a < 1600) a 1600 c = 3 c 3 if((a >= 1600) && (a < 2000)) c = 4; (a >= 1600) && (a < 2000) (a >= 1600) a 1600 (a < 2000) a 2000 c = 4 c 4 if((a >= 2000) && (a < 2400)) c = 5; (a >= 2000) && (a < 2400) (a >= 2000) a 2000 (a < 2400) a 2400 c = 5 c 5 if((a >= 2400) && (a < 2800)) c = 6; (a >= 2400) && (a < 2800) (a >= 2400) a 2400 (a < 2800) a 2800 c = 6 c 6 if((a >= 2800) && (a < 3200)) c = 7; (a >= 2800) && (a < 3200) (a >= 2800) a 2800 (a < 3200) a 3200 c = 7 c 7 if(c != -1) color[c]++; c != -1 c -1 1 color[c]++ color[c] color c if(c == -1) strong++; c == -1 c -1 1 strong++ strong int vari = 0; vari 0 for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if(color[i] > 0) vari++;
    } {
      if(color[i] > 0) vari++;
    } if(color[i] > 0) vari++; color[i] > 0 color[i] color i 0 vari++ vari int min = 0; min 0 int max = 0; max 0 if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    } vari == 0 vari 0 {
      min = 1;
      max = N;
    } min = 1 min 1 max = N max N {
      min = vari;
      max = vari + strong;
    } min = vari min vari max = vari + strong max vari + strong vari strong 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 strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    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 strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    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[] color = new int[8];
    int strong = 0;
    for(int i = 0; i < N; i++) {
      int a = sc.nextInt();
      int c = -1;
      if(a < 400) c = 0;
      if((a >= 400) && (a < 800)) c = 1;
      if((a >= 800) && (a < 1200)) c = 2;
      if((a >= 1200) && (a < 1600)) c = 3;
      if((a >= 1600) && (a < 2000)) c = 4;
      if((a >= 2000) && (a < 2400)) c = 5;
      if((a >= 2400) && (a < 2800)) c = 6;
      if((a >= 2800) && (a < 3200)) c = 7;
      if(c != -1) color[c]++;
      if(c == -1) strong++;
    }
    int vari = 0;
    for(int i = 0; i < 8; i++) {
      if(color[i] > 0) vari++;
    }
    int min = 0;
    int max = 0;
    if(vari == 0) {
      min = 1;
      max = N;
    } else {
      min = vari;
      max = vari + strong;
    }
    System.out.println(min + " " + max);
  }
}