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