#include <bits/stdc++.h>
using namespace std;
void judge(int r, vector<int>& c) {
  if (r <= 399) {
    c[0]++;
  } else if (400 <= r && r <= 799) {
    c[1]++;
  } else if (800 <= r && r <= 1199) {
    c[2]++;
  } else if (1200 <= r && r <= 1599) {
    c[3]++;
  } else if (1600 <= r && r <= 1999) {
    c[4]++;
  } else if (2000 <= r && r <= 2399) {
    c[5]++;
  } else if (2400 <= r && r <= 2799) {
    c[6]++;
  } else if (2800 <= r && r <= 3199) {
    c[7]++;
  } else {
    c[8]++;
  }
}
int main() {
  int n;
  cin >> n;
  vector<int> color(9, 0);
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    judge(rate, color);
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      min++;
      max++;
    }
  }
  if (min == 0) {
    min++;
  }
  if (color[8]) {
    max += color[8];
    if (max > 8) {
      max = 8;
    }
  }
  cout << min << " " << max << endl;
  return 0;
}
