#include <bits/stdc++.h>
using namespace std;
const int INF = 100000000;
int rate_kind[8];
int main() {
  int n;
  cin >> n;
  int a;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (1 <= a && a <= 399)
      rate_kind[0] = 1;
    else if (400 <= a && a <= 799)
      rate_kind[1] = 1;
    else if (800 <= a && a <= 1199)
      rate_kind[2] = 1;
    else if (1200 <= a && a <= 1599)
      rate_kind[3] = 1;
    else if (1600 <= a && a <= 1999)
      rate_kind[4] = 1;
    else if (2000 <= a && a <= 2399)
      rate_kind[5] = 1;
    else if (2400 <= a && a <= 2799)
      rate_kind[6] = 1;
    else if (2800 <= a && a <= 3199)
      rate_kind[7] = 1;
    else if (3200 <= a)
      rate_kind[8]++;
  }
  int sum = 0;
  for (int i = 0; i < 8; ++i) {
    sum += rate_kind[i];
  }
  if (sum + rate_kind[8] >= 8)
    cout << sum << ' ' << 8 << endl;
  else
    cout << sum << ' ' << sum + rate_kind[8] << endl;
}
