#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int n;
  map<int, int> m;
  for (int i = 0; i <= N - 1; ++i) {
    cin >> n;
    if (3200 <= n) n = 3200;
    m[n / 400]++;
  }
  int a1 = 0, a2 = 0;
  for (int i = 0; i <= 7; ++i) a1 += m.count(i) ? 1 : 0;
  a2 = a1 + m[8];
  cout << a1 << ' ' << a2 << endl;
  return 0;
}
