#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int c[n], s[9] = {}, sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> c[i];
    for (int j = 0; j < 8; j++) {
      if (j * 400 <= c[i] && c[i] <= j * 400 + 399) s[j]++;
    }
    if (c[i] >= 3200) s[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (s[i]) sum++;
  }
  cout << sum << " " << sum + s[8] << endl;
}
