#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], b[8], c = 0, d = 0;
  for (int i = 0; i < 8; i++) b[i] = 0;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    if (a[i] < 3200)
      b[a[i] / 400]++;
    else
      c++;
  }
  for (int i = 0; i < 8; i++)
    if (b[i] != 0) d++;
  cout << d << ' ' << c + d << endl;
  return 0;
}
