#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  int n, sum = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (x < 3200)
      a[x / 400 + 1]++;
    else
      a[9]++;
  }
  for (int i = 1; i <= 8; i++) {
    if (a[i]) sum++;
  }
  cout << sum << ' ';
  if (a[9] + sum <= 8)
    cout << a[9] + sum << endl;
  else
    cout << 8 << endl;
  return 0;
}
