#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  map<long long, long long> mp;
  for (long long i = 0; i < n; i++) {
    long long num;
    cin >> num;
    mp[num / 400]++;
  }
  long long count = 0;
  for (auto elem : mp) {
    if (elem.first < 8) count++;
  }
  cout << count << " ";
  count = 0;
  for (auto elem : mp) {
    if (elem.first < 8)
      count++;
    else
      count += elem.second;
  }
  cout << count << endl;
  return 0;
}
