#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, r = 0;
  bool c[10];
  memset(c, false, sizeof(c));
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      c[a / 400] = true;
    } else {
      r++;
    }
  }
  int cnt = 0;
  for (int i = 0; i <= 7; i++) {
    if (c[i]) cnt++;
  }
  cout << cnt << ' ' << cnt + r << endl;
}
