#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n, a, s = 0;
  cin >> n;
  set<int> b;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a <= 399)
      b.insert(0);
    else if (a <= 799)
      b.insert(1);
    else if (a <= 1199)
      b.insert(2);
    else if (a <= 1599)
      b.insert(3);
    else if (a <= 1999)
      b.insert(4);
    else if (a <= 2399)
      b.insert(5);
    else if (a <= 2799)
      b.insert(6);
    else
      ++s;
  }
  cout << b.size() + (s == 0 ? 0 : 1) << " " << b.size() + s << endl;
  return 0;
}
