#include <bits/stdc++.h>
using namespace std;
template <class t, class u>
void chmax(t& a, u b) {
  if (a < b) a = b;
}
template <class t, class u>
void chmin(t& a, u b) {
  if (b < a) a = b;
}
template <class t>
using vc = vector<t>;
template <class t>
using vvc = vc<vc<t>>;
using pi = pair<int, int>;
using vi = vc<int>;
void yes() { cout << "Yes" << endl; }
void no() { cout << "No" << endl; }
int SIZE(string s) { return (int)s.size(); }
const long long INF = 1LL << 60;
int main() {
  cout << fixed << setprecision(20);
  int n;
  cin >> n;
  vc<bool> ch(8, false);
  int cnt = 0;
  for (int i = int(0); i < int(n); i++) {
    int x;
    cin >> x;
    if (x >= 3200)
      cnt++;
    else
      ch[x / 400] = true;
  }
  int ans = accumulate(ch.begin(), ch.end(), 0);
  cout << max(ans, cnt) << " " << min(8, ans + cnt) << endl;
  return 0;
}
