#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[9], N, tmp, max = 0, min = 0;
  for (int i = 0; i < 9; i++) {
    color[i] = 0;
  }
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    if (tmp <= 399) {
      color[0]++;
    } else if (tmp <= 799) {
      color[1]++;
    } else if (tmp <= 1199) {
      color[2]++;
    } else if (tmp <= 1599) {
      color[3]++;
    } else if (tmp <= 1999) {
      color[4]++;
    } else if (tmp <= 2399) {
      color[5]++;
    } else if (tmp <= 2799) {
      color[6]++;
    } else if (tmp <= 3199) {
      color[7]++;
    } else {
      color[8]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      max++;
      min++;
    }
  }
  max += color[8];
  cout << min << " " << max << endl;
  return 0;
}
