#include <bits/stdc++.h>
using namespace std;
set<long long> a;
long long red = 0;
int main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    if (x < 400)
      a.insert(0);
    else if (x < 800)
      a.insert(1);
    else if (x < 1200)
      a.insert(2);
    else if (x < 1600)
      a.insert(3);
    else if (x < 2000)
      a.insert(4);
    else if (x < 2400)
      a.insert(5);
    else if (x < 2800)
      a.insert(6);
    else if (x < 3200)
      a.insert(7);
    else
      red++;
  }
  if (a.size() == 0) {
    cout << 1 << ' ' << min(1 + red, (long long)8) << endl;
  } else {
    cout << a.size() << ' ' << min((long long)(a.size() + red), (long long)8)
         << endl;
  }
  return 0;
}
