#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, arr[15], a;
  for (int i = 0; i < 15; i++) arr[i] = 0;
  cin >> t;
  for (int i = 0; i < t; i++) {
    cin >> a;
    if (a < 3200)
      arr[a / 400]++;
    else
      arr[8]++;
  }
  int sum = 0;
  for (int i = 0; i <= 7; i++) {
    sum += (arr[i] > 0);
  }
  sum = max(sum, 1);
  cout << sum << " " << sum + arr[8] << endl;
}
