#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, cnt = 0, c = 0;
  cin >> n;
  int a[n];
  bool ex[8];
  memset(ex, false, sizeof(ex));
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] < 3200)
      ex[a[i] / 400] = true;
    else
      cnt++;
  }
  for (int i = 0; i < 8; i++) {
    if (ex[i]) c++;
  }
  if (c == 0)
    cout << 1 << " " << cnt << endl;
  else
    cout << c << " " << min(c + cnt, 8) << endl;
  return 0;
}
