#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
int main() {
  int a[9];
  int n;
  cin >> n;
  for (int i = 0; i < (9); i++) {
    a[i] = 0;
  }
  for (int i = 0; i < (n); i++) {
    int b;
    cin >> b;
    if (b / 400 <= 7) {
      a[b / 400]++;
    } else {
      a[8]++;
    }
  }
  int min = 0, max = 0;
  for (int i = 0; i < (8); i++) {
    if (a[i] != 0) min++;
  }
  max = min + a[8];
  if (min == 0) min = 1;
  if (max >= 9) max = 8;
  cout << min << " " << max << endl;
  return 0;
}
