#include <bits/stdc++.h>
using namespace std;
int a[110];
int num[110];
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int r = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] <= 399)
      num[0]++;
    else if (a[i] <= 799)
      num[1]++;
    else if (a[i] <= 1199)
      num[2]++;
    else if (a[i] <= 1599)
      num[3]++;
    else if (a[i] <= 1999)
      num[4]++;
    else if (a[i] <= 2399)
      num[5]++;
    else if (a[i] <= 2799)
      num[6]++;
    else if (a[i] <= 3199)
      num[7]++;
    else
      r++;
  }
  int cou = 0;
  for (int i = 0; i < 8; i++) {
    if (num[i] > 0) cou++;
  }
  if (cou == 0) {
    cout << 1 << ' ' << min(8, r) << endl;
  } else {
    cout << cou << ' ' << min(8, r + cou) << endl;
  }
}
