#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(9, 0);
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    a[t / 400]++;
  }
  int count = 0;
  for (int i = 0; i < a.size(); i++) {
    if (a[i] > 0) count++;
  }
  cout << count << " " << count + a[8];
}
