#include <bits/stdc++.h>
using namespace std;
int cnt[9];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < (n); ++i) {
    int t;
    cin >> t;
    if (t > 3200)
      cnt[8]++;
    else
      cnt[t / 400]++;
  }
  int uniq = 0;
  for (int i = 0; i < (8); ++i)
    if (cnt[i]) uniq++;
  cout << uniq << " " << uniq + cnt[8] << endl;
}
