import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    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 = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    System.out.println(min + " " + max);
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    System.out.println(min + " " + max);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    System.out.println(min + " " + max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc boolean[] color = new boolean[8]; color new boolean[8] 8 int over = 0; over 0 for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    } {
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 399 n 399 {
        color[0] = true;
      } color[0] = true color[0] color 0 true if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 799 n 799 {
        color[1] = true;
      } color[1] = true color[1] color 1 true if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 1199 n 1199 {
        color[2] = true;
      } color[2] = true color[2] color 2 true if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 1599 n 1599 {
        color[3] = true;
      } color[3] = true color[3] color 3 true if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 1999 n 1999 {
        color[4] = true;
      } color[4] = true color[4] color 4 true if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 2399 n 2399 {
        color[5] = true;
      } color[5] = true color[5] color 5 true if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 2799 n 2799 {
        color[6] = true;
      } color[6] = true color[6] color 6 true if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      } n <= 3199 n 3199 {
        color[7] = true;
      } color[7] = true color[7] color 7 true {
        over++;
      } over++ over int min = 0; min 0 int max = 0; max 0 for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if(color[i]){
        min++;
      }
    } {
      if(color[i]){
        min++;
      }
    } if(color[i]){
        min++;
      } color[i] color i {
        min++;
      } min++ min max = min + over max min + over min over if(min == 0 && over > 0){
      min = 1;
    } min == 0 && over > 0 min == 0 min 0 over > 0 over 0 {
      min = 1;
    } min = 1 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 = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    System.out.println(min + " " + max);
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    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 = Integer.parseInt(sc.nextLine());
    boolean[] color = new boolean[8];
    int over = 0;
    for(int i = 0; i < N; i++){
      int n = sc.nextInt();
      if(n <= 399){
        color[0] = true;
      }else if(n <= 799){
        color[1] = true;
      }else if(n <= 1199){
        color[2] = true;
      }else if(n <= 1599){
        color[3] = true;
      }else if(n <= 1999){
        color[4] = true;
      }else if(n <= 2399){
        color[5] = true;
      }else if(n <= 2799){
        color[6] = true;
      }else if(n <= 3199){
        color[7] = true;
      }else{
        over++;
      }
    }
    
    int min = 0;
    int max = 0;
    for(int i = 0; i < 8; i++){
      if(color[i]){
        min++;
      }
    }
    max = min + over;
    if(min == 0 && over > 0){
      min = 1;
    }
    
    System.out.println(min + " " + max);
  }
}