#include <bits/stdc++.h>
using namespace std;
const long MOD = 1e9 + 7;
int main() {
  long n;
  cin >> n;
  vector<int> a(9, 0);
  for (int i = 0; i < n; ++i) {
    int tmp;
    cin >> tmp;
    if (tmp < 400)
      a[0]++;
    else if (tmp < 800)
      a[1]++;
    else if (tmp < 1200)
      a[2]++;
    else if (tmp < 1600)
      a[3]++;
    else if (tmp < 2000)
      a[4]++;
    else if (tmp < 2400)
      a[5]++;
    else if (tmp < 2800)
      a[6]++;
    else if (tmp < 3200)
      a[7]++;
    else
      a[8]++;
  }
  int minval = 0;
  int maxval = 0;
  for (int i = 0; i < 8; ++i) {
    if (a[i] > 0) minval++;
  }
  if (minval == 0) {
    minval = 1;
    a[8]--;
  }
  maxval = min(minval + a[8], 8);
  cout << minval << " " << maxval;
  return 0;
}
