#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int color(int rate) {
  if (rate >= 3200) return -1;
  for (int i = 0; i < 8; ++i) {
    if (rate < 400 * (i + 1)) return i;
  }
}
int main() {
  int N, r, cnt = 0;
  bool D[8] = {};
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> r;
    int c = color(r);
    if (c == -1)
      ++cnt;
    else
      D[c] = true;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) ans += D[i];
  cout << ans << ' ' << min(8, ans + cnt) << endl;
}
