#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, cnt = 0, ma = 0;
  cin >> N;
  vector<int> a(9, 0);
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    if (tmp >= 3200) {
      cnt++;
    } else {
      a[tmp / 400]++;
    }
  }
  sort(a.rbegin(), a.rend());
  for (int i = 0; i < 8; i++) {
    if (a[i] == 0) continue;
    cnt++;
    ma++;
  }
  cout << ma << " " << cnt;
}
