#include <bits/stdc++.h>
using namespace std;
int main() {
  int cl[8];
  int n;
  int x;
  int malti;
  int min, max;
  for (int i = 0; i < 8; i++) {
    cl[i] = 0;
  }
  malti = 0;
  min = max = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x >= 3200) {
      malti++;
    } else {
      cl[x / 400] = 1;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (cl[i] == 1) {
      min++;
      max++;
    } else if (malti > 0) {
      max++;
      malti--;
    }
  }
  if (max > 8) {
    max = 8;
  }
  cout << min << " " << max << endl;
  return 0;
}
