#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using pii = pair<int, int>;
using ul = unsigned long;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int GCD(int a, int b) { return b ? GCD(b, a % b) : a; }
int LCM(int a, int b) { return a * b / GCD(a, b); }
const int dy[] = {0, 1, 0, -1, -1, 1, 1, -1};
const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1};
inline bool inside(int y, int x, int H, int W) {
  return (y >= 0 && x >= 0 && y < H && x < W);
}
const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vi v(9);
  for (int i = (int)(0); i < (int)(n); ++i) {
    int a;
    cin >> a;
    if (a < 400)
      v[0] = 1;
    else if (a < 800)
      v[1] = 1;
    else if (a < 1200)
      v[2] = 1;
    else if (a < 1600)
      v[3] = 1;
    else if (a < 2000)
      v[4] = 1;
    else if (a < 2400)
      v[5] = 1;
    else if (a < 2800)
      v[6] = 1;
    else if (a < 3200)
      v[7] = 1;
    else
      v[8]++;
  }
  int mi = 0, ma;
  for (int i = (int)(0); i < (int)(8); ++i) {
    if (v[i]) mi++;
  }
  ma = mi + v[8];
  cout << mi << " " << ma << endl;
}
