#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[8], t, b = 0;
  for (int i = 0; i < 8; i++) a[i] = 0;
  while (n--) {
    scanf("%d", &t);
    if (t < 3200)
      a[t / 400]++;
    else
      b++;
  }
  int ans = 0, max = 0;
  for (int i = 0; i < 8; i++)
    if (a[i]) ans++;
  if (!ans) {
    ans = 1;
    if (b < 8)
      max = b;
    else
      max = 8;
  } else {
    if (ans + b < 8)
      max = ans + b;
    else
      max = 8;
  }
  cout << ans << " " << max << endl;
  return 0;
}
