#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = acos(-1);
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  for (ll i = (0), __last_i = (v.size()); i < __last_i; i++) {
    if (i) os << " ";
    os << v[i];
  }
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
  for (ll i = (0), __last_i = (v.size()); i < __last_i; i++) {
    if (i) os << endl;
    os << v[i];
  }
  return os;
}
int main() {
  ll n, a;
  ll count[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  ll cou = 0;
  ll ans1 = 0;
  ll ans2 = 0;
  cin >> n;
  for (ll i = (0), __last_i = (n); i < __last_i; i++) {
    cin >> a;
    if (a >= 1 && a <= 399) {
      if (count[0] != 1) {
        count[0] = 1;
      }
    } else if (a >= 400 && a <= 799) {
      if (count[1] != 1) {
        count[1] = 1;
      }
    } else if (a >= 800 && a <= 1199) {
      if (count[2] != 1) {
        count[2] = 1;
      }
    } else if (a >= 1200 && a <= 1599) {
      if (count[3] != 1) {
        count[3] = 1;
      }
    } else if (a >= 1600 && a <= 1999) {
      if (count[4] != 1) {
        count[4] = 1;
      }
    } else if (a >= 2000 && a <= 2399) {
      if (count[5] != 1) {
        count[5] = 1;
      }
    } else if (a >= 2400 && a <= 2799) {
      if (count[6] != 1) {
        count[6] = 1;
      }
    } else if (a >= 2800 && a <= 3199) {
      if (count[7] != 1) {
        count[7] = 1;
      }
    } else {
      cou++;
    }
  }
  for (ll i = (0), __last_i = (8); i < __last_i; i++) {
    ans1 += count[i];
    ans2 += count[i];
  }
  if (ans2 + cou > 8) {
    ans2 = 8;
  } else {
    ans2 += cou;
  }
  cout << ans1 << " " << ans2 << endl;
}
