#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int N, i, cnt[9], cnt2;
vector<int> a;
inline void solve() {
  cin >> (N);
  a.resize(N);
  for ((i) = (0); (i) < (N); (i)++) {
    cin >> (a[i]);
    if (a[i] < 400)
      cnt[0]++;
    else if (a[i] < 800)
      cnt[1]++;
    else if (a[i] < 1200)
      cnt[2]++;
    else if (a[i] < 1600)
      cnt[3]++;
    else if (a[i] < 2000)
      cnt[4]++;
    else if (a[i] < 2400)
      cnt[5]++;
    else if (a[i] < 2800)
      cnt[6]++;
    else if (a[i] < 3200)
      cnt[7]++;
    else
      cnt[8]++;
  }
  for ((i) = (0); (i) < (8); (i)++)
    if (cnt[i]) cnt2++;
  if (cnt2)
    cout << cnt2;
  else
    cout << cnt[8];
  if (!cnt[8])
    cout << " " << cnt2 << endl;
  else
    cout << " " << min(9, cnt2 + cnt[8]) << endl;
}
int main(int argc, char** argv) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
  return EXIT_SUCCESS;
}
