#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int m = 0;
  bool check[8];
  for (int i = 0; i < 8; i++) {
    check[i] = false;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    int l;
    cin >> l;
    if (l < 400) {
      check[0] = true;
    } else if (l < 799) {
      check[1] = true;
    } else if (l < 1199) {
      check[2] = true;
    } else if (l < 1599) {
      check[3] = true;
    } else if (l < 1999) {
      check[4] = true;
    } else if (l < 2399) {
      check[5] = true;
    } else if (l < 2799) {
      check[6] = true;
    } else if (l < 3199) {
      check[7] = true;
    } else
      m = m + 1;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (check[i] == true) {
      count = count + 1;
    }
  }
  cout << count << " " << count + m;
  return 0;
}
