#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  int ct = 0, oct = 0;
  bool f[8];
  for (int i = 0; i < 8; i++) {
    f[i] = true;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      oct++;
    else if (f[(int)(a / 400)]) {
      f[(int)(a / 400)] = false;
      ct++;
    }
  }
  cout << ct << " " << ct + oct << endl;
  return 0;
}
