#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, rate, over = 0, result = 0, a[8] = {0}, i;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> rate;
    if (rate < 400)
      a[0]++;
    else if (rate < 800)
      a[1]++;
    else if (rate < 1200)
      a[2]++;
    else if (rate < 1600)
      a[3]++;
    else if (rate < 2000)
      a[4]++;
    else if (rate < 2400)
      a[5]++;
    else if (rate < 2800)
      a[6]++;
    else if (rate < 3200)
      a[7]++;
    else
      over++;
  }
  for (i = 0; i < 8; i++)
    if (a[i] > 0) result++;
  if (result == 0)
    cout << "1 ";
  else
    cout << result << " ";
  if (over > 0) result += over;
  if (result > 8) result = 8;
  cout << result << endl;
  return 0;
}
