#include <bits/stdc++.h>
using namespace std;
map<int, int> mp;
int getKey(long long r) {
  if (r <= 0)
    return 0;
  else if (r >= 1 && r <= 399)
    return 1;
  else if (r >= 400 && r <= 799)
    return 2;
  else if (r >= 800 && r <= 1199)
    return 3;
  else if (r >= 1200 && r <= 1599)
    return 4;
  else if (r >= 1600 && r <= 1999)
    return 5;
  else if (r >= 2000 && r <= 2399)
    return 6;
  else if (r >= 2400 && r <= 2799)
    return 7;
  else if (r >= 2800 && r <= 3199)
    return 8;
  else
    return 9;
}
int main(int argc, char* argv[]) {
  int N;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    int r, k;
    cin >> r;
    k = getKey(r);
    if (mp.count(k) == 0) {
      mp[k] = 1;
    } else {
      int c = mp[k];
      mp[k] = c + 1;
    }
  }
  int m, f;
  if (mp.count(9) == 0) {
    m = mp.size();
    f = 0;
  } else {
    m = max(0, (int)mp.size() - 1);
    f = mp[9];
  }
  if (f == 0) {
    printf("%d %d\n", m, m);
  } else if (m == 0) {
    printf("%d %d\n", 1, min(f, 8));
  } else {
    printf("%d %d\n", m, min(m + f, 8));
  }
  return 0;
}
