#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N), b(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    int cnt = 0;
    for (int j = 0; j < 3200; j = j + 400) {
      if (j == 0) {
        if (a[i] > 0 && a[i] < 400) {
          b[cnt]++;
        }
      } else {
        if (a[i] >= j && a[i] < j + 400) {
          b[cnt]++;
        }
      }
      cnt++;
    }
    if (a[i] >= 3200) {
      b[8]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] != 0) {
      ans++;
    }
  }
  if (b[8] >= 8) {
    if (ans == 0) ans++;
    cout << ans << " " << 8;
  }
  if (ans == 0) ans++;
  if (b[8]) {
    if (ans + b[8] < 9) {
      cout << ans << " " << ans + b[8];
    } else {
      cout << ans << " " << 8;
    }
  } else {
    cout << ans << " " << ans;
  }
  return 0;
}
