#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int r[9] = {0};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8)
      r[8]++;
    else
      r[a]++;
  }
  int mx = 0, mn = 0;
  for (int i = 0; i <= 7; i++)
    if (r[i] > 0) mn++;
  if (mn == 0) {
    if (r[8] > 0)
      mn = 1;
    else
      mx = r[8];
  } else {
    mx = mn + r[8];
  }
  cout << mn << " " << mx << endl;
  return 0;
}
