#include <bits/stdc++.h>
using namespace std;
int n;
int num[9];
int main() {
  cin >> n;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    num[a / 400]++;
  }
  int n1 = 0;
  for (int i = 0; i < (8); i++) {
    if (num[i] > 0) n1++;
  }
  int min_n = n1 == 0 ? 1 : n1;
  int max_n = n1 + num[8];
  cout << min_n << " " << max_n << endl;
  return 0;
}
