#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum;
  cin >> n;
  vector<int> a(n);
  vector<int> co(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    int x;
    x = a[i] / 400;
    co[min(x, 8)]++;
  }
  for (int i = 0; i < 8; i++) {
    if (co[i] != 0) sum++;
  }
  cout << max(sum, 1) << " " << sum + co[8] << endl;
}
