#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int color[9] = {0};
  int over = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a / 400 > 7) {
      a = 8;
      over++;
    } else {
      a /= 400;
    }
    color[a]++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) min++;
  }
  max = min;
  for (int i = 0; i < 9; i++) {
    if (color[i] == 0 && over > 0) {
      max++;
      over--;
    }
  }
  cout << min << " " << max << endl;
  return 0;
}
