#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> v(8, 0);
  int count = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399)
      v[0] = 1;
    else if (a >= 400 && a <= 799)
      v[1] = 1;
    else if (a >= 800 && a <= 1199)
      v[2] = 1;
    else if (a >= 1200 && a <= 1599)
      v[3] = 1;
    else if (a >= 1600 && a <= 1999)
      v[4] = 1;
    else if (a >= 2000 && a <= 2399)
      v[5] = 1;
    else if (a >= 2400 && a <= 2799)
      v[6] = 1;
    else if (a >= 2800 && a <= 3199)
      v[7] = 1;
    else
      count++;
  }
  int a;
  for (int i = 0; i < 8; i++) {
    if (v[i] == 1) a++;
  }
  if (a == 0) {
    cout << "1 ";
  } else
    cout << a << " ";
  int b = min(a + count, 8);
  cout << b;
  return 0;
}
