#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int color[10] = {};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > 3200) a[i] = 3200;
    color[a[i] / 400]++;
  }
  int mi = 0, ma;
  for (int i = 0; i < 8; i++)
    if (color[i] > 0) mi++;
  if (mi == 0) mi = 1;
  ma = (mi + color[8]) % 9;
  cout << mi << " " << ma << endl;
  return 0;
}
