#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  ;
  int n;
  cin >> n;
  bool colors[8] = {};
  int others = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x >= 1 && x <= 399) {
      colors[0] = true;
    } else if (x >= 400 && x <= 799) {
      colors[1] = true;
    } else if (x >= 800 && x <= 1199) {
      colors[2] = true;
    } else if (x >= 1200 && x <= 1599) {
      colors[3] = true;
    } else if (x >= 1600 && x <= 1999) {
      colors[4] = true;
    } else if (x >= 2000 && x <= 2399) {
      colors[5] = true;
    } else if (x >= 2400 && x <= 2799) {
      colors[6] = true;
    } else if (x >= 2800 && x <= 3199) {
      colors[7] = true;
    } else if (x >= 3200) {
      others++;
    }
  }
  int diffColors = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i]) {
      diffColors++;
    }
  }
  cout << diffColors << " " << diffColors + others << "\n";
  return 0;
}
