#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &&w : a) {
    cin >> w;
  }
  vector<int> cnt(8, 0);
  int b = 0;
  for (auto &&w : a) {
    int t = w / 400;
    if (t < 8)
      cnt[t]++;
    else
      b++;
  }
  int num = 0;
  for (auto &&w : cnt) {
    if (w > 0) {
      num++;
    }
  }
  int mn = num;
  int mx;
  if (num == 0)
    mx = 1;
  else
    mx = num + b;
  cout << mn << " " << mx << endl;
}
