#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main(int argc, char const *argv[]) {
  int n, cnt = 0, c = 0;
  cin >> n;
  vector<int> v(n, 0);
  for (int i = 0; i < (int)n; i++) {
    cin >> v[i];
  }
  vector<int> num(8, 0);
  for (int i = 0; i < (int)v.size(); i++) {
    for (int j = 0; j < (int)num.size(); j++) {
      if (v[i] < (j + 1) * 400) {
        num[j]++;
        break;
      }
    }
    if (v[i] >= 3200) cnt++;
  }
  for (int i = 0; i < (int)num.size(); i++) {
    if (num[i] > 0) c++;
  }
  if (c != 0)
    cout << c << " " << c + cnt << endl;
  else
    cout << cnt << " " << cnt << endl;
  return 0;
}
