#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> rate(8, 0);
  int num = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (1 <= a && a <= 399) {
      rate.at(0)++;
    } else if (400 <= a && a <= 799) {
      rate.at(1)++;
    } else if (800 <= a && a <= 1199) {
      rate.at(2)++;
    } else if (1200 <= a && a <= 1599) {
      rate.at(3)++;
    } else if (1600 <= a && a <= 1999) {
      rate.at(4)++;
    } else if (2000 <= a && a <= 2399) {
      rate.at(5)++;
    } else if (2400 <= a && a <= 2799) {
      rate.at(6)++;
    } else if (2800 <= a && a <= 3199) {
      rate.at(7)++;
    } else {
      num++;
    }
  }
  int sorts = 0;
  for (int i = 0; i < 8; i++) {
    if (rate.at(i) != 0) sorts++;
  }
  cout << sorts << " " << sorts + num << endl;
}
