#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30, MOD = 1000000007;
const long long LINF = 1ll << 60;
template <class T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T& a, const T& b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
ostream& operator<<(ostream& o, const vector<T>& v) {
  for (T i : v) o << i << ' ';
  return o;
}
template <typename T>
istream& operator>>(istream& i, vector<T>& v) {
  for (T& j : v) i >> j;
  return i;
}
template <typename T>
ostream& operator<<(ostream& o, const set<T>& v) {
  for (T i : v) o << i << ' ';
  return o;
}
template <typename T, typename U>
ostream& operator<<(ostream& o, const pair<T, U>& v) {
  o << v.first << ' ' << v.second;
  return o;
}
int main() {
  vector<int> c(9);
  int n;
  cin >> n;
  for (int i = 0, i_l = (n); i < i_l; ++i) {
    int a;
    cin >> a;
    c[min(8, a / 400)]++;
  }
  int ans = 0;
  for (int i = 0, i_l = (7); i < i_l; ++i) ans += !!c[i];
  cout << ans + !!c[8] << endl;
  cout << ans + c[8] << endl;
  return 0;
}
