#include <bits/stdc++.h>
using ll = long long;
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>
T GCD(T a, T b) {
  if (b == 0)
    return a;
  else
    return GCD(b, a % b);
}
template <class T>
inline T LCM(T a, T b) {
  return (a * b) / GCD(a, b);
}
using namespace std;
signed main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int tourist = 0;
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      tourist++;
    else
      m[a[i] / 400]++;
  }
  int min1 = m.size();
  int max1 = m.size();
  if (m.size() == 0) {
    cout << 1 << " " << 1 << endl;
    return 0;
  }
  if (tourist) {
    max1 = min(min1 + tourist, 8);
  }
  cout << min1 << ' ' << max1 << endl;
}
