#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline bool print(T& x) {
  cout << x << endl;
  return true;
}
template <class T>
inline bool print_(T& x) {
  cout << x << " ";
  return true;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
ll gcd(ll x, ll y) {
  if (y == 0)
    return x;
  else
    return gcd(y, x % y);
}
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }
const int INF = 1e9;
const ll llINF = 1LL << 60;
const int MOD = 1e9 + 7;
const double EPS = 1e-9;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; (i) < (n); ++(i)) cin >> a[i];
  vector<int> color(9, 0);
  for (int i = 0; (i) < (n); ++(i)) {
    if (a[i] < 3200)
      color[a[i] / 400] = 1;
    else
      color[8]++;
  }
  int ans = accumulate(color.begin(), color.end() - 1, 0);
  color[8] += ans;
  cout << ans << " " << color[8];
  return 0;
}
