#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int n;
  cin >> n;
  bool color[8];
  for (int i = 0; i < 8; ++i) color[i] = false;
  int cnt = 0;
  int redcnt = 0;
  for (int i = 0; i < n; ++i) {
    int temp;
    cin >> temp;
    if (temp >= 3200) {
      ++redcnt;
    } else if (!color[temp / 400]) {
      ++cnt;
      color[temp / 400] = true;
    }
  }
  if (redcnt == 0) {
    cout << cnt << ' ' << cnt << endl;
  } else if (cnt == 0) {
    cout << 1 << ' ' << min(8, redcnt) << endl;
  } else {
    cout << cnt << ' ' << min(8, cnt + redcnt) << endl;
  }
  return 0;
}
