#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int color[9];
  for (int i = 0; i < 9; ++i) color[i] = 0;
  int a;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    int b = a / 400;
    if (b > 7)
      ++color[8];
    else if (!color[b])
      ++color[b];
  }
  int m = 0;
  for (int i = 0; i < 8; ++i) m += color[i];
  cout << m << ' ' << m + color[8] << endl;
  return 0;
}
