#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  vector<int> a;
  int tmp;
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    a.push_back(tmp);
  }
  bool f[8];
  for (int i = 0; i < 8; i++) {
    f[i] = false;
  }
  int count = 0;
  int count2 = 0;
  for (int i = 0; i < N; i++) {
    if ((int)(a[i] / 400) == 0 && f[0] == false) {
      count++;
      f[0] = true;
    } else if ((int)(a[i] / 400) == 1 && f[1] == false) {
      count++;
      f[1] = true;
    } else if ((int)(a[i] / 400) == 2 && f[2] == false) {
      count++;
      f[2] = true;
    } else if ((int)(a[i] / 400) == 3 && f[3] == false) {
      count++;
      f[3] = true;
    } else if ((int)(a[i] / 400) == 4 && f[4] == false) {
      count++;
      f[4] = true;
    } else if ((int)(a[i] / 400) == 5 && f[5] == false) {
      count++;
      f[5] = true;
    } else if ((int)(a[i] / 400) == 6 && f[6] == false) {
      count++;
      f[6] = true;
    } else if ((int)(a[i] / 400) == 7) {
      count++;
      f[7] = true;
    } else if ((int)(a[i] / 400) > 7) {
      count2++;
    }
  }
  if (count > 0) {
    cout << count << " " << count + count2 << endl;
  } else {
    cout << 1 << " " << min(count2, 8) << endl;
  }
  return 0;
}
