import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  }
  

  
} 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 Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  }
  

  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int Rcnt=0; Rcnt 0 int c[] = new int[N]; c new int[N] N int min=1; min 1 int max=0; max 0 int tmp=0; tmp 0 for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    } {
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    } tmp=sc.nextInt() tmp sc.nextInt() sc.nextInt sc if(tmp>=3200){
        Rcnt++;
      } tmp>=3200 tmp 3200 {
        Rcnt++;
      } Rcnt++ Rcnt c[i]=tmp/400 c[i] c i tmp/400 tmp 400 Arrays.sort(c) Arrays.sort Arrays c if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    } N==Rcnt N Rcnt {
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    } System.out.print(1) System.out.print System.out System System.out 1 System.out.print(" ") System.out.print System.out System System.out " " System.out.println(Rcnt) System.out.println System.out System System.out Rcnt return; for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    } int i=0; int i=0; i 0 i<N-Rcnt-1 i N-Rcnt-1 N-Rcnt-1 N Rcnt 1 i++ i++ i {
      if(c[i]!=c[i+1]){
        min++;
      }
    } {
      if(c[i]!=c[i+1]){
        min++;
      }
    } if(c[i]!=c[i+1]){
        min++;
      } c[i]!=c[i+1] c[i] c i c[i+1] c i+1 i 1 {
        min++;
      } min++ min System.out.print(min) System.out.print System.out System System.out min System.out.print(" ") System.out.print System.out System System.out " " System.out.println(min+Rcnt) System.out.println System.out System System.out min+Rcnt min Rcnt String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  }
  

  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  }
  

  
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int Rcnt=0;
    int c[] = new int[N];
    int min=1;
    int max=0;
    int tmp=0;
    
    for(int i=0;i<N;i++){
      tmp=sc.nextInt();
      if(tmp>=3200){
        Rcnt++;
      }
      c[i]=tmp/400;
    }
    Arrays.sort(c);
    if(N==Rcnt){
      System.out.print(1);
      System.out.print(" ");
      System.out.println(Rcnt);
      return;
    }
    for(int i=0;i<N-Rcnt-1;i++){
      if(c[i]!=c[i+1]){
        min++;
      }
    }
    System.out.print(min);
    System.out.print(" ");
    System.out.println(min+Rcnt);
  }
  

  
}