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