import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      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();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      System.out.println(min+" "+max);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      System.out.println(min+" "+max);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      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 boolean[] color = new boolean[8]; color new boolean[8] 8 int free = 0; free 0 int count = 0; count 0 for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    } {
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 1<=x && x<=399 1<=x 1 x x<=399 x 399 {
        if(!color[0]){
          count++;
        }
        color[0] = true;
      } if(!color[0]){
          count++;
        } !color[0] color[0] color 0 {
          count++;
        } count++ count color[0] = true color[0] color 0 true if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 400<=x && x<=799 400<=x 400 x x<=799 x 799 {
        if(!color[1]){
          count++;
        }
        color[1] = true;
      } if(!color[1]){
          count++;
        } !color[1] color[1] color 1 {
          count++;
        } count++ count color[1] = true color[1] color 1 true if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 800<=x && x<=1199 800<=x 800 x x<=1199 x 1199 {
        if(!color[2]){
          count++;
        }
        color[2] = true;
      } if(!color[2]){
          count++;
        } !color[2] color[2] color 2 {
          count++;
        } count++ count color[2] = true color[2] color 2 true if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 1200<=x && x<=1599 1200<=x 1200 x x<=1599 x 1599 {
        if(!color[3]){
          count++;
        }
        color[3] = true;
      } if(!color[3]){
          count++;
        } !color[3] color[3] color 3 {
          count++;
        } count++ count color[3] = true color[3] color 3 true if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 1600<=x && x<=1999 1600<=x 1600 x x<=1999 x 1999 {
        if(!color[4]){
          count++;
        }
        color[4] = true;
      } if(!color[4]){
          count++;
        } !color[4] color[4] color 4 {
          count++;
        } count++ count color[4] = true color[4] color 4 true if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 2000<=x && x<=2399 2000<=x 2000 x x<=2399 x 2399 {
        if(!color[5]){
          count++;
        }
        color[5] = true;
      } if(!color[5]){
          count++;
        } !color[5] color[5] color 5 {
          count++;
        } count++ count color[5] = true color[5] color 5 true if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 2400<=x && x<=2799 2400<=x 2400 x x<=2799 x 2799 {
        if(!color[6]){
          count++;
        }
        color[6] = true;
      } if(!color[6]){
          count++;
        } !color[6] color[6] color 6 {
          count++;
        } count++ count color[6] = true color[6] color 6 true if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      } 2800<=x && x<=3199 2800<=x 2800 x x<=3199 x 3199 {
        if(!color[7]){
          count++;
        }
        color[7] = true;
      } if(!color[7]){
          count++;
        } !color[7] color[7] color 7 {
          count++;
        } count++ count color[7] = true color[7] color 7 true {
        free++;
      } free++ free int min = count; min count int max = count+free; max count+free count free if(min==0){
      min = 1;
      max = n;
    } min==0 min 0 {
      min = 1;
      max = n;
    } min = 1 min 1 max = n max n 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();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      System.out.println(min+" "+max);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      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();
    boolean[] color = new boolean[8];
    int free = 0;
    int count = 0;
    for(int i=0;i<n;i++){
      int x = sc.nextInt();
      if(1<=x && x<=399){
        if(!color[0]){
          count++;
        }
        color[0] = true;
      }else if(400<=x && x<=799){
        if(!color[1]){
          count++;
        }
        color[1] = true;
      }else if(800<=x && x<=1199){
        if(!color[2]){
          count++;
        }
        color[2] = true;
      }else if(1200<=x && x<=1599){
        if(!color[3]){
          count++;
        }
        color[3] = true;
      }else if(1600<=x && x<=1999){
        if(!color[4]){
          count++;
        }
        color[4] = true;
      }else if(2000<=x && x<=2399){
        if(!color[5]){
          count++;
        }
        color[5] = true;
      }else if(2400<=x && x<=2799){
        if(!color[6]){
          count++;
        }
        color[6] = true;
      }else if(2800<=x && x<=3199){
        if(!color[7]){
          count++;
        }
        color[7] = true;
      }else{
        free++;
      }
    }

    int min = count;
    int max = count+free;
    if(min==0){
      min = 1;
      max = n;
    }
    
      System.out.println(min+" "+max);
  }
}