#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool color[8];
  int over_red = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a < 8)
      color[a] = true;
    else
      over_red++;
  }
  int min_res = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) min_res++;
  }
  cout << min_res << ' ' << (min_res + over_red) << endl;
  return 0;
}
