#include <bits/stdc++.h>
using namespace std;
int main() {
  bool flag[8] = {0, 0, 0, 0, 0, 0, 0, 0};
  int flag_rainbow = 0;
  int n;
  int colormin = 0, colormax = 0;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399 && flag[0] != 1) {
      flag[0] = 1;
    } else if (a[i] >= 400 && a[i] <= 799 && flag[1] != 1) {
      flag[1] = 1;
    } else if (a[i] >= 800 && a[i] <= 1199 && flag[2] != 1) {
      flag[2] = 1;
    } else if (a[i] >= 1200 && a[i] <= 1599 && flag[3] != 1) {
      flag[3] = 1;
    } else if (a[i] >= 1600 && a[i] <= 1999 && flag[4] != 1) {
      flag[4] = 1;
    } else if (a[i] >= 2000 && a[i] <= 2399 && flag[5] != 1) {
      flag[5] = 1;
    } else if (a[i] >= 2400 && a[i] <= 2799 && flag[6] != 1) {
      flag[6] = 1;
    } else if (a[i] >= 2800 && a[i] <= 3199 && flag[7] != 1) {
      flag[7] = 1;
    } else if (a[i] >= 3200) {
      flag_rainbow++;
    }
  }
  for (int k = 0; k < 8; k++) {
    if (flag[k] == 1) {
      colormin++;
      colormax++;
    }
  }
  if (flag_rainbow != 0) {
    colormax += flag_rainbow;
  }
  cout << colormin << " " << colormax;
}
