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