#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int a[N];
  int count[8];
  int count3200 = 0;
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    count[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < 8; j++) {
      if (j * 400 <= a[i] && a[i] < (j + 1) * 400) {
        count[j] = 1;
      }
    }
    if (a[i] >= 3200) {
      count3200++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (count[i] == 1) ans++;
  }
  cout << min(ans, 1) << " " << ans + count3200;
  return 0;
}
