#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
const int MOD = 1e9 + 7;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  int N;
  cin >> N;
  std::vector<bool> rate(8);
  int over3199 = 0;
  for (int i = 0; i < (int)(N); i++) {
    int ra;
    cin >> ra;
    if (ra < 3200) {
      rate.at(ra / 400) = true;
    } else {
      over3199 += 1;
    }
  }
  int minCnt = 0;
  int maxCnt = 0;
  bool isExistKing = (over3199 > 0);
  for (int i = 0; i < (int)(rate.size()); i++) {
    if (rate.at(i)) {
      minCnt++;
      maxCnt++;
    } else if (over3199 > 0) {
      over3199--;
      maxCnt++;
    }
  }
  if (minCnt == 0 && isExistKing) minCnt = 1;
  cout << minCnt << ' ' << maxCnt << endl;
  return 0;
}
