import java.io.*;
import java.util.*;

class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    ArrayList<String> list = new ArrayList<String>();
    int highs = 0;
    for(int i = 0; i < n; i++) {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    }
    int min = -1;
    if(list.size() == 0)
      min = 1;
    else
      min = list.size();
    int max = list.size() + highs;
    System.out.println(min + " " + max);
  }
} import java.io.*; io.* java import java.util.*; util.* java class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    ArrayList<String> list = new ArrayList<String>();
    int highs = 0;
    for(int i = 0; i < n; i++) {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    }
    int min = -1;
    if(list.size() == 0)
      min = 1;
    else
      min = list.size();
    int max = list.size() + highs;
    System.out.println(min + " " + max);
  }
} Main public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    ArrayList<String> list = new ArrayList<String>();
    int highs = 0;
    for(int i = 0; i < n; i++) {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    }
    int min = -1;
    if(list.size() == 0)
      min = 1;
    else
      min = list.size();
    int max = list.size() + highs;
    System.out.println(min + " " + max);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    ArrayList<String> list = new ArrayList<String>();
    int highs = 0;
    for(int i = 0; i < n; i++) {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    }
    int min = -1;
    if(list.size() == 0)
      min = 1;
    else
      min = list.size();
    int max = list.size() + highs;
    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 ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() int highs = 0; highs 0 for(int i = 0; i < n; i++) {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    } {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    } int rating = sc.nextInt(); rating sc.nextInt() sc.nextInt sc String color = ""; color "" if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 399 rating 399 color = "gray" color "gray" if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 799 rating 799 color = "brown" color "brown" if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 1199 rating 1199 color = "green" color "green" if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 1599 rating 1599 color = "cyan" color "cyan" if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 1999 rating 1999 color = "blue" color "blue" if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 2399 rating 2399 color = "yellow" color "yellow" if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 2799 rating 2799 color = "orange" color "orange" if(rating <= 3199)
        color = "red";
      else {
        highs++;
      } rating <= 3199 rating 3199 color = "red" color "red" {
        highs++;
      } highs++ highs if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      } color.length() > 0 color.length() color.length color 0 {
        if(!list.contains(color))
          list.add(color);
      } if(!list.contains(color))
          list.add(color); !list.contains(color) list.contains(color) list.contains list color list.add(color) list.add list color int min = -1; min -1 1 if(list.size() == 0)
      min = 1;
    else
      min = list.size(); list.size() == 0 list.size() list.size list 0 min = 1 min 1 min = list.size() min list.size() list.size list int max = list.size() + highs; max list.size() + highs list.size() list.size list highs System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args
import java.io.*;
import java.util.*;

class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    ArrayList<String> list = new ArrayList<String>();
    int highs = 0;
    for(int i = 0; i < n; i++) {
      int rating = sc.nextInt();
      String color = "";
      if(rating <= 399)
        color = "gray";
      else if(rating <= 799)
        color = "brown";
      else if(rating <= 1199)
        color = "green";
      else if(rating <= 1599)
        color = "cyan";
      else if(rating <= 1999)
        color = "blue";
      else if(rating <= 2399)
        color = "yellow";
      else if(rating <= 2799)
        color = "orange";
      else if(rating <= 3199)
        color = "red";
      else {
        highs++;
      }
      if(color.length() > 0) {
        if(!list.contains(color))
          list.add(color);
      }
    }
    int min = -1;
    if(list.size() == 0)
      min = 1;
    else
      min = list.size();
    int max = list.size() + highs;
    System.out.println(min + " " + max);
  }
}
