#include <bits/stdc++.h>
using namespace std;
long long int MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647;
const double PI = acos(-1);
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;
}
template <class T>
void debug(T v) {
  for (int i = 0; i < v.size(); ++i) cout << v[i] << " ";
  cout << endl;
}
const long long int dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const long long int dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n;
  cin >> n;
  map<int, int> mp;
  long long int red = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a < 3200)
      mp[a / 400]++;
    else
      red++;
  }
  int nored = mp.size();
  cout << max(1, nored) << " " << min(8LL, nored + red) << endl;
}
