#include <bits/stdc++.h>
using namespace std;
const int maxn = 200003;
int main() {
  int res = 0;
  int n;
  cin >> n;
  int flag[8];
  fill(flag, flag + 8, 0);
  int h = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp >= 3200)
      h++;
    else
      flag[tmp / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (flag[i] != 0) res++;
  }
  if (res <= h) {
    cout << h << " " << res + h << endl;
  } else {
    cout << res << " " << res + h << endl;
  }
  return 0;
}
