import java.util.*;
public class Main {
  public static void main(String [] args) {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      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();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      System.out.println(min + " " + max);
  }
} Main public static void main(String [] args) {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      System.out.println(min + " " + max);
  } main {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      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 int cnt[] = new int[N]; cnt new int[N] N int cnt1 = 0; cnt1 0 int cnt2 = 0; cnt2 0 int cnt3 = 0; cnt3 0 int cnt4 = 0; cnt4 0 int cnt5 = 0; cnt5 0 int cnt6 = 0; cnt6 0 int cnt7 = 0; cnt7 0 int cnt8 = 0; cnt8 0 int cnt9 = 0; cnt9 0 int min = 0; min 0 int max = 0; max 0 for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      } int  i = 0 ; int  i = 0 ; i 0 i < N i N i++ i++ i {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      } {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 1 && a <= 399 a >= 1 a 1 a <= 399 a 399 {
          cnt1 = 1;
        } cnt1 = 1 cnt1 1 if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 400 && a <= 799 a >= 400 a 400 a <= 799 a 799 {
          cnt2 = 1;
        } cnt2 = 1 cnt2 1 if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 800 && a <= 1199 a >= 800 a 800 a <= 1199 a 1199 {
          cnt3 = 1;
        } cnt3 = 1 cnt3 1 if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 1200 && a <= 1599 a >= 1200 a 1200 a <= 1599 a 1599 {
          cnt4 = 1;
        } cnt4 = 1 cnt4 1 if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 1600 && a <= 1999 a >= 1600 a 1600 a <= 1999 a 1999 {
          cnt5 = 1;
        } cnt5 = 1 cnt5 1 if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 2000 && a <= 2399 a >= 2000 a 2000 a <= 2399 a 2399 {
          cnt6 = 1;
        } cnt6 = 1 cnt6 1 if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 2400 && a <= 2799 a >= 2400 a 2400 a <= 2799 a 2799 {
          cnt7 = 1;
        } cnt7 = 1 cnt7 1 if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 2800 && a <= 3199 a >= 2800 a 2800 a <= 3199 a 3199 {
          cnt8 = 1;
        } cnt8 = 1 cnt8 1 if (a >= 3200 && a <= 4800) {
          cnt9++;
        } a >= 3200 && a <= 4800 a >= 3200 a 3200 a <= 4800 a 4800 {
          cnt9++;
        } cnt9++ cnt9 min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8 min cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8 cnt7 cnt6 cnt5 cnt4 cnt3 cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8 cnt1 cnt2 cnt3 cnt4 cnt5 cnt6 cnt7 cnt8 max = min + cnt9 max min + cnt9 min cnt9 if (min == 0) {
        min = 1;
      } min == 0 min 0 {
        min = 1;
      } min = 1 min 1 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();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      System.out.println(min + " " + max);
  }
} public class Main {
  public static void main(String [] args) {
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      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();
      int cnt[] = new int[N];
      int cnt1 = 0;
      int cnt2 = 0;
      int cnt3 = 0;
      int cnt4 = 0;
      int cnt5 = 0;
      int cnt6 = 0;
      int cnt7 = 0;
      int cnt8 = 0;
      int cnt9 = 0;
      int min = 0;
      int max = 0;
      for (int  i = 0 ; i < N ; i++) {
        int a = sc.nextInt();
        if (a >= 1 && a <= 399) {
          cnt1 = 1;
        } else if (a >= 400 && a <= 799) {
          cnt2 = 1;
        } else if (a >= 800 && a <= 1199) {
          cnt3 = 1;
        } else if (a >= 1200 && a <= 1599) {
          cnt4 = 1;
        } else if (a >= 1600 && a <= 1999) {
          cnt5 = 1;
        } else if (a >= 2000 && a <= 2399) {
          cnt6 = 1;
        } else if (a >= 2400 && a <= 2799) {
          cnt7 = 1;
        } else if (a >= 2800 && a <= 3199) {
          cnt8 = 1;
        } else if (a >= 3200 && a <= 4800) {
          cnt9++;
        } 
      }
      min = cnt1 + cnt2 + cnt3 + cnt4 + cnt5 + cnt6+ cnt7 + cnt8;
      max = min + cnt9;
      if (min == 0) {
        min = 1;
      }
      System.out.println(min + " " + max);
  }
}