#include <bits/stdc++.h>
using namespace std;
int v[109], n, i, j, x;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    if (x <= 399)
      v[1]++;
    else if (x <= 799)
      v[2]++;
    else if (x <= 1199)
      v[3]++;
    else if (x <= 1599)
      v[4]++;
    else if (x <= 1999)
      v[5]++;
    else if (x <= 2399)
      v[6]++;
    else if (x <= 2799)
      v[7]++;
    else if (x <= 3199)
      v[8]++;
    else
      v[9]++;
  }
  int mini = 0, maxi = 0;
  for (int i = 1; i <= 8; i++) {
    if (v[i]) mini++;
  }
  cout << mini << " " << mini + v[9];
  return 0;
}
