#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  int color[8] = {0};
  for (int i = 0; i < N; i++) cin >> a[i];
  int num = 0, num2 = 0;
  sort(a.begin(), a.end());
  for (int i = 0; i < N; i++) {
    if (a[i] >= 3200) {
      num++;
    } else {
      color[a[i] / 400] = 1;
    }
  }
  if (num > 8) num = 8;
  for (int i = 0; i < 8; i++)
    if (color[i] == 1) num2++;
  int num3 = num2 + num;
  if (num3 > 8)
    cout << num2 << " " << 8 << endl;
  else if (num == 0)
    cout << num2 << " " << num2 << endl;
  else
    cout << num2 << " " << num3 << endl;
  return 0;
}
