#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, rate, ans = 0, max0;
  cin >> n;
  vector<int> a(9);
  for (int i = 0; i < n; i++) {
    cin >> rate;
    rate = min(rate / 400, 8);
    a[rate]++;
  }
  for (int i = 0; i < 8; i++)
    if (a[i] > 0) ans++;
  if (ans == 0) {
    ans = 1;
    max0 = min(n, 8);
  } else
    max0 = min(ans + a[8], 8);
  cout << ans << ' ' << max0 << endl;
}
