#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef long long ll;
template <class T>
bool chmax(T &map<int, int> MP;, const T &b) {
  if (map<int, int> MP; < b) {
    map<int, int> MP;
    = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &map<int, int> MP;, const T &b) {
  if (b < map<int, int> MP;) {
    map<int, int> MP;
    = b;
    return 1;
  }
  return 0;
}
template <typename T>
ostream &operator<<(ostream &os, vector<T> &v) {
  os << "{";
  for (int i = 0; i < (int)v.size(); i++) {
    os << v[i] << (i < v.size() - 1 ? ", " : "");
  }
  os << "}";
  return os;
}
int main() {
  ll x = 0, n, g, m, p, h, k, w, max = -10000000, min = 400000001, ans = 0,
     sum = 0;
  string s;
  bool f = true;
  cin >> n;
  VI map<int, int> MP;
  (n);
  VI b(8);
  for (int i = 0; i < n; i++) {
    cin >> map<int, int> MP;
    [i];
    if (map<int, int> MP;[i] >= 1 && map<int, int> MP;[i] <= 399) {
      if (b[0] == 0) b[0] = 1;
    } else if (map<int, int> MP;[i] >= 400 && map<int, int> MP;[i] <= 799) {
      if (b[1] == 0) b[1] = 1;
    } else if (map<int, int> MP;[i] >= 800 && map<int, int> MP;[i] <= 1199) {
      if (b[2] == 0) b[2] = 1;
    } else if (map<int, int> MP;[i] >= 1200 && map<int, int> MP;[i] <= 1599) {
      if (b[3] == 0) b[3] = 1;
    } else if (map<int, int> MP;[i] >= 1600 && map<int, int> MP;[i] <= 1999) {
      if (b[4] == 0) b[4] = 1;
    } else if (map<int, int> MP;[i] >= 2000 && map<int, int> MP;[i] <= 2399) {
      if (b[5] == 0) b[5] = 1;
    } else if (map<int, int> MP;[i] >= 2400 && map<int, int> MP;[i] <= 2799) {
      if (b[6] == 0) b[6] = 1;
    } else if (map<int, int> MP;[i] >= 2800 && map<int, int> MP;[i] <= 3199) {
      if (b[7] == 0) b[7] = 1;
    } else if (map<int, int> MP;[i] >= 3200) {
      sum++;
    }
  }
  int zero = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] == 1)
      ans++;
    else
      zero++;
  }
  if (sum > 0 && ans != 8) {
    if (zero > sum)
      max = ans + sum;
    else
      max = ans + zero;
    if (ans == 0) ans = 1;
    if (max > 8) max = 8;
  } else {
    cout << ans << " " << ans << endl;
    return 0;
  }
  cout << ans << " " << max << endl;
  return 0;
}
