#include <bits/stdc++.h>
using namespace std;
const long long int INF = 2147483647;
const long long int MINF = -2147483648;
const long long int LINF = 9223372036854775807;
const long long int MOD = 1000000007;
const double PI = acos(-1);
#pragma GCC optimize("Ofast")
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using vlli = vector<long long int>;
using vvli = vector<vlli>;
using vs = vector<string>;
using vvs = vector<vs>;
using vb = vector<bool>;
using vvb = vector<vb>;
using ll = long long;
template <typename T>
istream &operator>>(istream &is, vector<T> &vec) {
  for (T &x : vec) is >> x;
  return is;
}
template <typename T>
ostream &operator<<(ostream &os, vector<T> &vec) {
  for (int i = 0; i < vec.size(); i++) {
    os << vec[i] << (i + 1 == vec.size() ? "" : "");
  }
  return os;
}
template <typename T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int a, b, c, h, n, w, ans = 0, count = 0;
  string s, t;
  vector<pair<string, pair<long long int, long long int>>> pr;
  cin >> n;
  vlli d(n), e(8, 0);
  for (long long int i = 0; i < (n); i++) {
    cin >> d[i];
    if (d[i] <= 399) {
      e[0]++;
    } else if (d[i] >= 400 && d[i] <= 799) {
      e[1]++;
    } else if (d[i] >= 800 && d[i] <= 1199) {
      e[2]++;
    } else if (d[i] >= 1200 && d[i] <= 1599) {
      e[3]++;
    } else if (d[i] >= 1600 && d[i] <= 1999) {
      e[4]++;
    } else if (d[i] >= 2000 && d[i] <= 2399) {
      e[5]++;
    } else if (d[i] >= 2400 && d[i] <= 2799) {
      e[6]++;
    } else if (d[i] >= 2800 && d[i] <= 3199) {
      e[7]++;
    } else {
      count++;
    }
  }
  sort(e.begin(), e.end());
  for (long long int i = 0; i < (8); i++) {
    if (e[i] >= 1) {
      ans++;
    }
  }
  if (n == 1 && count == 1) {
    std::cout << count << " " << ans + count << endl;
  } else {
    std::cout << ans << " " << ans + count << endl;
  }
}
