#include <bits/stdc++.h>
#pragma GCC optimize "O3"
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[9];
  for (int i = 0; i < 9; i++) {
    a[i] = 0;
  }
  int target = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp / 400 < 8) {
      a[tmp / 400] = 1;
    } else {
      a[8]++;
    }
  }
  int ans_l = 0;
  for (int i = 0; i < 8; i++) {
    ans_l += a[i];
  }
  int ans_h = ans_l + a[8];
  cout << ans_l << " " << ans_h << endl;
  return 0;
}
