#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[101];
  int ranking[] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199};
  int rankcolor[] = {0, 0, 0, 0, 0, 0, 0, 0};
  cin >> n;
  int sum = 0;
  int freedom = 0;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    for (int j = 0; j < 8; ++j) {
      if (x <= ranking[j]) {
        rankcolor[j] = 1;
        break;
      }
    }
    if (x >= 3200) {
      freedom++;
    }
  }
  for (int i = 0; i < 8; ++i) {
    sum += rankcolor[i];
  }
  cout << max(1, min(sum, 8)) << " " << min(sum + freedom, 8) << endl;
}
