#include <bits/stdc++.h>
using namespace std;
int main() {
  int extra = 0;
  int arr[8];
  for (int i = 0; i < 8; ++i) arr[i] = 0;
  int numbers;
  cin >> numbers;
  int num;
  while (numbers--) {
    cin >> num;
    if (num <= 399)
      arr[0] += 1;
    else if (num <= 799)
      arr[1] += 1;
    else if (num <= 1199)
      arr[2] += 1;
    else if (num <= 1599)
      arr[3] += 1;
    else if (num <= 1999)
      arr[4] += 1;
    else if (num <= 2399)
      arr[5] += 1;
    else if (num <= 2799)
      arr[6] += 1;
    else if (num <= 3199)
      arr[7] += 1;
    else
      extra++;
  }
  int total = 0;
  bool totalC = true;
  for (int i = 0; i < 8; ++i) {
    if (arr[i] != 0) {
      total++;
      totalC = false;
    }
  }
  if (totalC)
    cout << extra << " " << extra << endl;
  else
    cout << total << " " << total + extra << endl;
}
