#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr long long MOD = 1000000007;
constexpr long long INF = 1LL << 60;
const long double PI = acosl(-1.0);
constexpr long double EPS = 1e-11;
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;
}
int main() {
  ll n;
  cin >> n;
  ll color[9];
  for (ll i = 0; i < 9; i++) color[i] = 0;
  for (ll i = 0; i < n; i++) {
    ll t;
    cin >> t;
    for (ll i = 0; i < 7; i++) {
      if (i * 400 <= t and t < (i + 1) * 400) color[i]++;
    }
    if (t >= 3200) color[8]++;
  }
  ll max = 0;
  for (ll i = 0; i < 9; i++)
    if (color[i]) max++;
  max += color[8];
  ll min = 0;
  if (color[8] == n)
    min = 1;
  else
    min = max - color[8];
  cout << min << " " << max << endl;
}
