#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<int> as(9, 0);
  for (int i = int(0); i < int(n); i++) {
    int first;
    cin >> first;
    int idx = min(first / 400, 8);
    ++as[idx];
  }
  int vmin = 0;
  for (int i = int(0); i < int(8); i++)
    if (as[i]) ++vmin;
  int vmax = vmin + as[8];
  cout << vmin << " " << vmax << endl;
  return 0;
}
