#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    mp[x / 400]++;
  }
  int regular = 0, excl = 0;
  for (auto x : mp) {
    if (x.first >= 8)
      excl += x.second;
    else
      regular++;
  }
  bool ok = true;
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (mp[i]) {
      cnt++;
    } else
      ok = false;
  }
  int mi, mx;
  if (ok) {
    mi = 8;
    mx = 8;
  } else {
    if (regular == 0) {
      mi = 1;
      mx = min(excl, 8);
    } else {
      mi = cnt;
      mx = min(regular + excl, 8);
    }
  }
  cout << mi << " " << mx << endl;
  return 0;
}
