#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> b(9);
  int count = 0;
  for (int i = 0; i < (int)(n); i++) cin >> a.at(i);
  for (int i = 0; i < (int)(n); i++) {
    if (a.at(i) <= 399)
      b.at(0)++;
    else if (a.at(i) <= 799)
      b.at(1)++;
    else if (a.at(i) <= 1199)
      b.at(2)++;
    else if (a.at(i) <= 1599)
      b.at(3)++;
    else if (a.at(i) <= 1999)
      b.at(4)++;
    else if (a.at(i) <= 2399)
      b.at(5)++;
    else if (a.at(i) <= 2799)
      b.at(6)++;
    else if (a.at(i) <= 3199)
      b.at(7)++;
    else
      b.at(8)++;
  }
  for (int i = 0; i < (int)(8); i++) {
    if (b.at(i) >= 1) count++;
  }
  if (count == 0)
    cout << 1;
  else
    cout << count;
  cout << " ";
  if (count + b.at(8) <= 8)
    cout << count + b.at(8);
  else
    cout << 8;
  cout << endl;
}
