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