#include <bits/stdc++.h>
using namespace std;
int a[1001];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(a, a + n);
  int ans = 0, cnt = 0, c = 0, b = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] < 3200) {
      b = a[i] / 400;
      if (b != c) {
        ans++;
      }
      c = b;
    } else {
      cnt = n - i;
      break;
    }
  }
  cout << max(ans, 1) << ' ' << ans + cnt << endl;
  return 0;
}
