#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, c[9], k, ans = 0;
  cin >> n;
  int a[n];
  for (i = 0; i < 9; i++) c[i] = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    k = a[i] / 400;
    c[k]++;
  }
  sort(a, a + n);
  for (i = 0; i < 8; i++) {
    if (c[i] > 0) ans++;
  }
  cout << max(ans, 1) << " " << ans + c[8];
  return 0;
}
