#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const ll MOD = 1e9 + 7;
const double pi = acos(-1);
bool operator<(const pair<ll, ll> &a, const pair<ll, ll> &b) {
  if (a.first == b.first) return a.second < b.second;
  return a.first < b.first;
}
vector<pair<int, int>> vp;
int a[12];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    int t;
    cin >> t;
    if (t / 400 >= 8)
      a[8]++;
    else {
      a[t / 400]++;
    }
  }
  int color = 0;
  for (int i = 0; i < 8; ++i)
    if (a[i]) color++;
  if (color == 0) {
    cout << 1 << " ";
  } else {
    cout << color << " ";
  }
  cout << min(color + a[8], 8) << endl;
  return 0;
}
