import java.util.*;
import java.lang.Math;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  }
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean rate[] = new boolean[8]; rate new boolean[8] 8 int istack; istack int count = 0; count 0 int free = 0; free 0 Arrays.fill(rate,false) Arrays.fill Arrays rate false for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    } {
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    } istack = sc.nextInt() istack sc.nextInt() sc.nextInt sc istack /= 400 istack 400 if(istack > 7) free++;
      	else rate[istack] = true; istack > 7 istack 7 free++ free rate[istack] = true rate[istack] rate istack true for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
    	if(rate[i]) count++;
    } {
    	if(rate[i]) count++;
    } if(rate[i]) count++; rate[i] rate i count++ count if(count == 0){
    	count = 1;
      	free--;
    } count == 0 count 0 {
    	count = 1;
      	free--;
    } count = 1 count 1 free-- free System.out.println(count + " " + (count+free)) System.out.println System.out System System.out count + " " + (count+free) count + " " + (count+free) count " " (count+free) count free String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  }
} Main
import java.util.*;
import java.lang.Math;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean rate[] = new boolean[8];
    int istack;
    int count = 0;
    int free = 0;
    
    Arrays.fill(rate,false);
    
    for(int i = 0;i < n;i++){
    	istack = sc.nextInt();
      	istack /= 400;
      	if(istack > 7) free++;
      	else rate[istack] = true;
    }
    
    for(int i = 0;i < 8; i++){
    	if(rate[i]) count++;
    }
    
    if(count == 0){
    	count = 1;
      	free--;
    }
    
    System.out.println(count + " " + (count+free));
  }
}
