import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

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

  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int a[] = new int[n];
    int c[] = {0,0,0,0,0,0,0,0,0};
    
    for(int i = 0 ; i < n ; ++i){
      a[i] = sc.nextInt();
            
      if(a[i] < 400) c[0]++;
      else if(a[i] < 800) c[1]++;
      else if(a[i] < 1200) c[2]++;
      else if(a[i] < 1600) c[3]++;
      else if(a[i] < 2000) c[4]++;
      else if(a[i] < 2400) c[5]++;
      else if(a[i] < 2800) c[6]++;
      else if(a[i] < 3200) c[7]++;
      else c[8]++;
    }
    
    int min = 0;
    
    for(int i = 0 ; i < 8 ; ++i){
      if(c[i] != 0){
        min++;
      }
    }
    
    int max = min + c[8];
    if(min == 0) min++;
    
    System.out.println(min+" "+max);

  } main {
    Scanner sc = new Scanner(System.in);

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

  }
}