import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  } main {
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean[] rate = new boolean[8]; rate new boolean[8] 8 int maxCount = 0; maxCount 0 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    } {
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      } a >= 3200 a 3200 {
        maxCount++;
      } maxCount++ maxCount {
        rate[a/400] = true;
      } rate[a/400] = true rate[a/400] rate a/400 a 400 true int min = 0; min 0 for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if(rate[i]) min++;
    } {
      if(rate[i]) min++;
    } if(rate[i]) min++; rate[i] rate i min++ min if(min == 0){
      min = 1;
      maxCount--;
    } min == 0 min 0 {
      min = 1;
      maxCount--;
    } min = 1 min 1 maxCount-- maxCount System.out.println(min + " " + (min + maxCount)) System.out.println System.out System System.out min + " " + (min + maxCount) min + " " + (min + maxCount) min " " (min + maxCount) min maxCount String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] rate = new boolean[8];
    int maxCount = 0;
    int n = sc.nextInt();
    for(int i = 0; i < n; i++){
      int a = sc.nextInt();
      if(a >= 3200){
        maxCount++;
      }else{
        rate[a/400] = true;
      }
    }
    int min = 0;
    for(int i = 0; i < 8; i++){
      if(rate[i]) min++;
    }
    if(min == 0){
      min = 1;
      maxCount--;
    }
    System.out.println(min + " " + (min + maxCount));
  }
}
