#include <bits/stdc++.h>
using namespace std;
int main() {
  pair<int, bool> v[8];
  int n, m, cnt1 = 0, cnt2 = 0, j = 0;
  for (int i = 0; i < 8; i++) {
    v[i].first = 399 + i * 400;
    v[i].second = false;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> m;
    while (v[j].first < m) {
      j++;
      if (j == 9) break;
    }
    if (v[j].second == false) {
      v[j].second = true;
      cnt1++;
      cnt2++;
    }
    if (m >= 3200) {
      cnt2++;
    }
    j = 0;
  }
  cout << cnt1 << " " << cnt2 << endl;
}
