#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int N, color;
  cin >> N;
  int A[10], others = 0, cnt = 0;
  memset(A, 0, sizeof A);
  for (int i = 0; i < N; i++) {
    cin >> color;
    if (color >= 1 && color <= 399)
      A[0] = 1;
    else if (color >= 400 && color <= 799)
      A[1] = 1;
    else if (color >= 800 && color <= 1199)
      A[2] = 1;
    else if (color >= 1200 && color <= 1599)
      A[3] = 1;
    else if (color >= 1600 && color <= 1999)
      A[4] = 1;
    else if (color >= 2000 && color <= 2399)
      A[5] = 1;
    else if (color >= 2400 && color <= 2799)
      A[6] = 1;
    else if (color >= 2800 && color <= 3199)
      A[7] = 1;
    else
      others++;
  }
  for (int i = 0; i < 8; i++) {
    if (A[i]) cnt++;
  }
  if (!cnt) cnt = 1;
  cout << cnt << " " << cnt + others << "\n";
  return 0;
}
