#include <bits/stdc++.h>
using namespace std;
int main() {
  int mask = 0;
  int cnt = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    a /= 400;
    if (a > 7) {
      ++cnt;
    } else {
      mask |= (1 << a);
    }
  }
  int res = 0;
  for (int i = 0; i < 8; ++i) {
    if (mask & (1 << i)) ++res;
  }
  cout << res << " " << res + cnt;
  return 0;
}
