#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> v(n, 0);
  vector<long long> rate;
  long long over = 0;
  for (long long i = 0; i < n; i++) {
    cin >> v[i];
    if (v[i] < 3200)
      rate.push_back(v[i] / 400);
    else
      over++;
  }
  set<long long> s(rate.begin(), rate.end());
  vector<long long> v2(s.begin(), s.end());
  sort((v2).begin(), (v2).end());
  long long count = 0;
  for (long long i : v2) count++;
  if (count == 0)
    cout << 1 << " ";
  else
    cout << count << " ";
  for (long long i = 0; i < over; i++) {
    if (count < 8) count++;
  }
  cout << count << endl;
}
