#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> mp(9, 0);
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    mp[x / 400]++;
  }
  int mn = 0, mx;
  for (int i = 0; i < 8; i++) {
    if (mp[i]) mn++;
  }
  if (mp[8]) mn = max(mn, 1);
  mx = mn + mp[8];
  cout << mn << " " << mx << endl;
}
int main() {
  solve();
  return 0;
}
