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

    int box[] = new int[9];
    int N = sc.nextInt();
    
    for(int i = 0;i < 9;i++){
      box[i] = 0;
    }
    
    for(int i = 0;i < N;i++){
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    }
    int min = 0;
    int max = 0;
    for(int i = 0;i < 8;i++){
      if(box[i] > 0)min++;
    }
    max = min+box[8];
    if(min == 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 box[] = new int[9];
    int N = sc.nextInt();
    
    for(int i = 0;i < 9;i++){
      box[i] = 0;
    }
    
    for(int i = 0;i < N;i++){
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    }
    int min = 0;
    int max = 0;
    for(int i = 0;i < 8;i++){
      if(box[i] > 0)min++;
    }
    max = min+box[8];
    if(min == 0){
      min = 1;
    }
    System.out.println(min+" "+max);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int box[] = new int[9];
    int N = sc.nextInt();
    
    for(int i = 0;i < 9;i++){
      box[i] = 0;
    }
    
    for(int i = 0;i < N;i++){
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    }
    int min = 0;
    int max = 0;
    for(int i = 0;i < 8;i++){
      if(box[i] > 0)min++;
    }
    max = min+box[8];
    if(min == 0){
      min = 1;
    }
    System.out.println(min+" "+max);
  } main {
    Scanner sc = new Scanner(System.in);

    int box[] = new int[9];
    int N = sc.nextInt();
    
    for(int i = 0;i < 9;i++){
      box[i] = 0;
    }
    
    for(int i = 0;i < N;i++){
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    }
    int min = 0;
    int max = 0;
    for(int i = 0;i < 8;i++){
      if(box[i] > 0)min++;
    }
    max = min+box[8];
    if(min == 0){
      min = 1;
    }
    System.out.println(min+" "+max);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int box[] = new int[9]; box new int[9] 9 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for(int i = 0;i < 9;i++){
      box[i] = 0;
    } int i = 0; int i = 0; i 0 i < 9 i 9 i++ i++ i {
      box[i] = 0;
    } {
      box[i] = 0;
    } box[i] = 0 box[i] box i 0 for(int i = 0;i < N;i++){
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    } {
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    } int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 3200 <= s 3200 s {
        box[8]++; 
      } box[8]++ box[8] box 8 if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 2800 <= s 2800 s {
        box[7]++; 
      } box[7]++ box[7] box 7 if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 2400 <= s 2400 s {
        box[6]++; 
      } box[6]++ box[6] box 6 if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 2000 <= s 2000 s {
        box[5]++; 
      } box[5]++ box[5] box 5 if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 1600 <= s 1600 s {
        box[4]++; 
      } box[4]++ box[4] box 4 if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 1200 <= s 1200 s {
        box[3]++; 
      } box[3]++ box[3] box 3 if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 800 <= s 800 s {
        box[2]++; 
      } box[2]++ box[2] box 2 if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      } 400 <= s 400 s {
        box[1]++; 
      } box[1]++ box[1] box 1 {
        box[0]++; 
      } box[0]++ box[0] box 0 int min = 0; min 0 int max = 0; max 0 for(int i = 0;i < 8;i++){
      if(box[i] > 0)min++;
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if(box[i] > 0)min++;
    } {
      if(box[i] > 0)min++;
    } if(box[i] > 0)min++; box[i] > 0 box[i] box i 0 min++ min max = min+box[8] max min+box[8] min box[8] box 8 if(min == 0){
      min = 1;
    } min == 0 min 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 box[] = new int[9];
    int N = sc.nextInt();
    
    for(int i = 0;i < 9;i++){
      box[i] = 0;
    }
    
    for(int i = 0;i < N;i++){
      int s = sc.nextInt();
      if(3200 <= s){
        box[8]++; 
      }else if(2800 <= s){
        box[7]++; 
      }else if(2400 <= s){
        box[6]++; 
      }else if(2000 <= s){
        box[5]++; 
      }else if(1600 <= s){
        box[4]++; 
      }else if(1200 <= s){
        box[3]++; 
      }else if(800 <= s){
        box[2]++; 
      }else if(400 <= s){
        box[1]++; 
      }else{
        box[0]++; 
      }
    }
    int min = 0;
    int max = 0;
    for(int i = 0;i < 8;i++){
      if(box[i] > 0)min++;
    }
    max = min+box[8];
    if(min == 0){
      min = 1;
    }
    System.out.println(min+" "+max);
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

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