#include <bits/stdc++.h>
using namespace std;
int check(int rate) {
  if (rate < 400) {
    return 0;
  } else if (rate < 800) {
    return 1;
  } else if (rate < 1200) {
    return 2;
  } else if (rate < 1600) {
    return 3;
  } else if (rate < 2000) {
    return 4;
  } else if (rate < 2400) {
    return 5;
  } else if (rate < 2800) {
    return 6;
  } else if (rate < 3200) {
    return 7;
  }
  return 8;
}
int main() {
  int N;
  int a;
  bool used[8];
  int pool, max_count, min_count;
  cin >> N;
  for (int i = 0; i < 8; i++) {
    used[i] = false;
  }
  pool = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    int c = check(a);
    if (c < 8) {
      used[c] = true;
    } else {
      pool++;
    }
  }
  min_count = 0;
  for (int i = 0; i < 8; i++) {
    if (used[i]) min_count++;
  }
  max_count = min_count;
  if (min_count == 0) {
    min_count = 1;
  }
  max_count += pool;
  if (max_count > 8) {
    max_count = 8;
  }
  cout << min_count << ' ' << max_count << endl;
  return 0;
}
