#include <bits/stdc++.h>
using namespace std;
const int INF = (1 << 30);
const int NEGA = -INF;
long long ans = 0;
int a;
int main() {
  int n;
  cin >> n;
  int cl[9] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a / 400 < 8)
      cl[a / 400] = 1;
    else
      cl[8]++;
  }
  int kind = 0;
  for (int i = 0; i < 8; i++) kind += cl[i];
  cout << kind << " " << kind + cl[8] << endl;
  return 0;
}
