#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int n;
  cin >> n;
  int cnt[9] = {0};
  for (int i = 0; i < (int)(n); ++i) {
    int t;
    cin >> t;
    t = t / 400;
    if (t > 8) t = 8;
    cnt[t] += 1;
  }
  int a = 0, b = cnt[8];
  for (int i = 0; i <= 7; i++) {
    if (cnt[i] != 0) a++;
  }
  if (a == 0) {
    cout << 1 << " " << min(8, b) << endl;
  } else {
    cout << a << " " << min(8, a + b) << endl;
  }
}
