#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using vi = vector<int>;
using vs = vector<string>;
using vll = vector<long long>;
using vvi = vector<vector<int>>;
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 (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vi a(n);
  for (int i = 0; i < (int)(n); i++) cin >> a[i];
  map<int, int> mp;
  for (int i = 0; i < (int)(n); i++) {
    int color = a[i] / 400;
    mp[color]++;
  }
  int x = mp.size();
  if (mp.count(8)) {
    int mn = max(x - 1, 1);
    int mx = x - 1 + mp[8];
    cout << mn << " " << mx << endl;
  } else {
    cout << x << " " << x << endl;
  }
}
