#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vvl = vector<vector<ll>>;
using vl = vector<ll>;
const ll MOD = 1000000007;
const double PI = acos(-1);
ll n;
ll ans;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ans = 0;
  cin >> n;
  int a;
  int col[10] = {0};
  for (ll i = 0; i < n; i++) {
    cin >> a;
    if (a < 400)
      col[0]++;
    else if (a < 800)
      col[1]++;
    else if (a < 1200)
      col[2]++;
    else if (a < 1600)
      col[3]++;
    else if (a < 2000)
      col[4]++;
    else if (a < 2400)
      col[5]++;
    else if (a < 2800)
      col[6]++;
    else if (a < 3200)
      col[7]++;
    else
      col[8]++;
  }
  int colmin = 0;
  for (ll i = 0; i < 8; i++) {
    if (col[i]) colmin++;
  }
  int colmax;
  colmax = colmin + col[8];
  colmax = min(8, colmax);
  cout << colmin << " " << colmax << endl;
  return 0;
}
