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);
  }
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz