#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr double INF{1e9};
constexpr int MOD{1000000000 + 7};
constexpr array<int, 4> dy{-1, 1, 0, 0};
constexpr array<int, 4> dx{0, 0, -1, 1};
constexpr int div_ru(int a, int b) { return (a - b + 1) / b; }
ll pow_mod(ll b, ll e, ll m) {
  ll r = 1;
  for (; e > 0; e >>= 1) {
    if (e & 1) r = (r * b) % m;
    b = (b * b) % m;
  }
  return r;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int& x : a) cin >> x;
  vector<int> c(8);
  int rainbow = 0;
  for (int& x : a) {
    const int color = x / 400;
    if (color >= 8)
      rainbow++;
    else
      c[color]++;
  }
  int count = 0;
  for (int& x : c)
    if (x > 0) count++;
  const int min_colors = count;
  const int max_colors = min(count + rainbow, 8);
  cout << min_colors << " " << max_colors << endl;
}
