#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int ans1 = 0, ans2;
  vector<int> c(N), color(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> c[i];
  }
  for (int i = 0; i < N; i++) {
    if (c[i] >= 3200) {
      color[8]++;
    } else {
      color[c[i] / 400]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      ans1++;
    }
  }
  if (ans1 == 0) {
    ans2 = 1;
  } else {
    ans2 = ans1;
  }
  ans1 += color[8];
  if (ans1 >= 9) {
    ans1 = 8;
  }
  cout << ans2 << ' ' << ans1 << endl;
  return 0;
}
