#include <bits/stdc++.h>
using namespace std;
int score(int e) {
  if (e < 400)
    return 1;
  else if (e < 800)
    return 2;
  else if (e < 1200)
    return 3;
  else if (e < 1600)
    return 4;
  else if (e < 2000)
    return 5;
  else if (e < 2400)
    return 6;
  else if (e < 2800)
    return 7;
  else if (e < 3200)
    return 8;
  else
    return 9;
}
int main(void) {
  int n;
  cin >> n;
  int sls[11];
  for (int i = 1; i < 11; i++) {
    sls[i] = 0;
  }
  for (long long i = 0; i < (n); i++) {
    int e;
    cin >> e;
    sls[score(e)]++;
  }
  int kind = 0;
  for (int i = 1; i < 9; i++) {
    if (sls[i] >= 1) {
      kind++;
    }
  }
  if (kind == 0) {
    cout << 1 << " ";
  } else {
    cout << kind << " ";
  }
  kind += sls[9];
  if (kind > 8) {
    kind = 8;
  }
  cout << kind;
  return 0;
}
