import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    boolean[] b=new boolean[8];
    int r=0;
    for(int i=0;i<n;i++){
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      }
    }
    int y=0;
    for(int i=0;i<8;i++){
      if(b[i]){
        y++;
      }
    }
    if(r==0){
      System.out.print(y+" ");
    }else{
      System.out.print(Math.max(y,1)+" ");
    }
    System.out.println(y+r);
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    boolean[] b=new boolean[8];
    int r=0;
    for(int i=0;i<n;i++){
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      }
    }
    int y=0;
    for(int i=0;i<8;i++){
      if(b[i]){
        y++;
      }
    }
    if(r==0){
      System.out.print(y+" ");
    }else{
      System.out.print(Math.max(y,1)+" ");
    }
    System.out.println(y+r);
  }
} Main public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    boolean[] b=new boolean[8];
    int r=0;
    for(int i=0;i<n;i++){
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      }
    }
    int y=0;
    for(int i=0;i<8;i++){
      if(b[i]){
        y++;
      }
    }
    if(r==0){
      System.out.print(y+" ");
    }else{
      System.out.print(Math.max(y,1)+" ");
    }
    System.out.println(y+r);
  } main {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    boolean[] b=new boolean[8];
    int r=0;
    for(int i=0;i<n;i++){
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      }
    }
    int y=0;
    for(int i=0;i<8;i++){
      if(b[i]){
        y++;
      }
    }
    if(r==0){
      System.out.print(y+" ");
    }else{
      System.out.print(Math.max(y,1)+" ");
    }
    System.out.println(y+r);
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean[] b=new boolean[8]; b new boolean[8] 8 int r=0; r 0 for(int i=0;i<n;i++){
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[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){
        r++;
      }else{
        b[a/400]=true;
      }
    } {
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      }
    } int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      } a>=3200 a 3200 {
        r++;
      } r++ r {
        b[a/400]=true;
      } b[a/400]=true b[a/400] b a/400 a 400 true int y=0; y 0 for(int i=0;i<8;i++){
      if(b[i]){
        y++;
      }
    } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
      if(b[i]){
        y++;
      }
    } {
      if(b[i]){
        y++;
      }
    } if(b[i]){
        y++;
      } b[i] b i {
        y++;
      } y++ y if(r==0){
      System.out.print(y+" ");
    }else{
      System.out.print(Math.max(y,1)+" ");
    } r==0 r 0 {
      System.out.print(y+" ");
    } System.out.print(y+" ") System.out.print System.out System System.out y+" " y " " {
      System.out.print(Math.max(y,1)+" ");
    } System.out.print(Math.max(y,1)+" ") System.out.print System.out System System.out Math.max(y,1)+" " Math.max(y,1) Math.max Math y 1 " " System.out.println(y+r) System.out.println System.out System System.out y+r y r String[] args args
import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    boolean[] b=new boolean[8];
    int r=0;
    for(int i=0;i<n;i++){
      int a=sc.nextInt();
      if(a>=3200){
        r++;
      }else{
        b[a/400]=true;
      }
    }
    int y=0;
    for(int i=0;i<8;i++){
      if(b[i]){
        y++;
      }
    }
    if(r==0){
      System.out.print(y+" ");
    }else{
      System.out.print(Math.max(y,1)+" ");
    }
    System.out.println(y+r);
  }
}