#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1e9 + 7;
const ll LINF = LLONG_MAX;
const int INF = INT_MAX;
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;
}
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
  cerr << " " << to_string(H);
  debug_out(T...);
}
int main() {
  int n;
  cin >> n;
  int crown_cnt = 0;
  map<int, int> rating;
  for (int i = (0); i < (int)(n); i++) {
    int rate;
    cin >> rate;
    for (int j = (0); j < (int)(8); j++) {
      if (j * 400 <= rate and rate <= (j + 1) * 400 - 1) {
        rating[j]++;
      }
    }
    if (rate >= 3200) crown_cnt++;
  }
  cout << max(crown_cnt, (int)rating.size()) << " "
       << crown_cnt + (int)rating.size() << endl;
}
