#include <bits/stdc++.h>
using namespace std;
int main() {
  int rate[9];
  for (int i = 0; i < 9; i++) {
    rate[i] = 0;
  }
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    rate[a / 400 - 1]++;
  }
  int min_num = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      min_num++;
    }
  }
  int max_num = min_num + rate[8];
  max_num = min(max_num, 8);
  cout << min_num << ' ' << max_num;
}
