#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a;
  int gray = 0, brown = 0, green = 0, light_blue = 0, blue = 0, yellow = 0,
      orange = 0, red = 0;
  int count = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a < 400) {
      gray = 1;
    } else if (a < 800) {
      brown = 1;
    } else if (a < 1200) {
      green = 1;
    } else if (a < 1600) {
      light_blue = 1;
    } else if (a < 2000) {
      blue = 1;
    } else if (a < 2400) {
      yellow = 1;
    } else if (a < 2800) {
      orange = 1;
    } else if (a < 3200) {
      red = 1;
    } else {
      count++;
    }
  }
  int total = gray + brown + green + light_blue + blue + yellow + orange + red;
  cout << total + count << " " << total << endl;
}
