import java.util.Scanner;
 
public class Main {
  int getColor(int rate) {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  }

  void run() {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    System.out.println(min + " " + max);
  }

  public static void main(String[] args) {
    new Main().run();
  }
} import java.util.Scanner; Scanner java.util public class Main {
  int getColor(int rate) {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  }

  void run() {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    System.out.println(min + " " + max);
  }

  public static void main(String[] args) {
    new Main().run();
  }
} Main int getColor(int rate) {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  } getColor {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  } if (rate < 400)
      return 0; rate < 400 rate 400 return 0; 0 if (rate < 800)
      return 1; rate < 800 rate 800 return 1; 1 if (rate < 1200)
      return 2; rate < 1200 rate 1200 return 2; 2 if (rate < 1600)
      return 3; rate < 1600 rate 1600 return 3; 3 if (rate < 2000)
      return 4; rate < 2000 rate 2000 return 4; 4 if (rate < 2400)
      return 5; rate < 2400 rate 2400 return 5; 5 if (rate < 2800)
      return 6; rate < 2800 rate 2800 return 6; 6 if (rate < 3200)
      return 7; rate < 3200 rate 3200 return 7; 7 return 8; 8 int rate rate void run() {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    System.out.println(min + " " + max);
  } run {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    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[] num = new int[9]; num new int[9] 9 for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    } {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    } int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc num[getColor(rate)]++ num[getColor(rate)] num getColor(rate) getColor rate int ans = 0; ans 0 for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
      if (num[i] > 0) {
        ans++;
      }
    } {
      if (num[i] > 0) {
        ans++;
      }
    } if (num[i] > 0) {
        ans++;
      } num[i] > 0 num[i] num i 0 {
        ans++;
      } ans++ ans int min = ans; min ans int max = ans; max ans if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    } num[8] > 0 num[8] num 8 0 {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    } if (min == 0) {
        min = 1;
      } min == 0 min 0 {
        min = 1;
      } min = 1 min 1 max = max + num[8] max max + num[8] max num[8] num 8 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args public class Main {
  int getColor(int rate) {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  }

  void run() {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    System.out.println(min + " " + max);
  }

  public static void main(String[] args) {
    new Main().run();
  }
} public class Main {
  int getColor(int rate) {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  }

  void run() {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    System.out.println(min + " " + max);
  }

  public static void main(String[] args) {
    new Main().run();
  }
} Main
import java.util.Scanner;
 
public class Main {
  int getColor(int rate) {
    if (rate < 400)
      return 0;
    if (rate < 800)
      return 1;
    if (rate < 1200)
      return 2;
    if (rate < 1600)
      return 3;
    if (rate < 2000)
      return 4;
    if (rate < 2400)
      return 5;
    if (rate < 2800)
      return 6;
    if (rate < 3200)
      return 7;
    return 8;
  }

  void run() {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int[] num = new int[9];
    for (int i = 0; i < n; i++) {
      int rate = sc.nextInt();
      num[getColor(rate)]++;
    }

    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (num[i] > 0) {
        ans++;
      }
    }

    int min = ans;
    int max = ans;
    if (num[8] > 0) {
      if (min == 0) {
        min = 1;
      }
      max = max + num[8];
    }
    System.out.println(min + " " + max);
  }

  public static void main(String[] args) {
    new Main().run();
  }
}
