#include <bits/stdc++.h>
using namespace std;
void init() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int v[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
void solve() {
  int n;
  scanf("%d", &n);
  int h[9] = {};
  for (int i = 0; i < n; ++i) {
    int t;
    scanf("%d", &t);
    ++h[upper_bound(v, v + 8, t + 1) - v];
    ;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) ans += !!h[i];
  printf("%d %d", max(ans, (int)!!h[8]), ans + h[8]);
}
int main() {
  init();
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
