#include <bits/stdc++.h>
using namespace std;
signed main() {
  int count[9];
  for (int i = 0; i < 9; ++i) count[i] = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    ++count[min(a / 400, 8)];
  }
  int ans_min = 0;
  for (int i = 0; i < 8; ++i)
    if (count[i]) ++ans_min;
  cout << ans_min << " " << (ans_min + count[8]) << endl;
  return 0;
}
