import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    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 x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    System.out.println(min + " " + max);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    System.out.println(min + " " + max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    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 x = 0; x 0 int[] color = new int[8]; color new int[8] 8 for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    } {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      } a >= 3200 a 3200 {
        x++;
      } x++ x {
        color[a/400]++;
      } color[a/400]++ color[a/400] color a/400 a 400 int noone = 0; noone 0 for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if (color[i] == 0) {
        noone++;
      }
    } {
      if (color[i] == 0) {
        noone++;
      }
    } if (color[i] == 0) {
        noone++;
      } color[i] == 0 color[i] color i 0 {
        noone++;
      } noone++ noone int min = Math.max(8 - noone, 1); min Math.max(8 - noone, 1) Math.max Math 8 - noone 8 noone 1 int max = 8-noone+x; max 8-noone+x 8-noone 8 noone x 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 x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    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 x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    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 x = 0;
    int[] color = new int[8];
    for (int i = 0; i < N; i++) {
      int a = sc.nextInt();
      if (a >= 3200) {
        x++;
      } else {
        color[a/400]++;
      }
    }

    int noone = 0;
    for (int i = 0; i < 8; i++) {
      if (color[i] == 0) {
        noone++;
      }
    }
    
    int min = Math.max(8 - noone, 1);
    int max = 8-noone+x;
    
    System.out.println(min + " " + max);
  }
}