#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, Min, Max;
  int a[9];
  int input[101];
  for (int i = 0; i < 9; i++) a[i] = 0;
  Min = Max = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> input[i];
    if (1 <= input[i] && input[i] <= 399)
      a[0] = 1;
    else if (400 <= input[i] && input[i] <= 799)
      a[1] = 1;
    else if (800 <= input[i] && input[i] <= 1199)
      a[2] = 1;
    else if (1200 <= input[i] && input[i] <= 1599)
      a[3] = 1;
    else if (1600 <= input[i] && input[i] <= 1999)
      a[4] = 1;
    else if (2000 <= input[i] && input[i] <= 2399)
      a[5] = 1;
    else if (2400 <= input[i] && input[i] <= 2799)
      a[6] = 1;
    else if (2800 <= input[i] && input[i] <= 3199)
      a[7] = 1;
    else if (3200 <= input[i] && input[i] <= 4800)
      a[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] == 1) Min++;
  }
  cout << Min << "\t" << Min + a[8] << endl;
  return 0;
}
