#include <bits/stdc++.h>
using namespace std;
int N;
const int MAX_N = 100 + 10;
int a[MAX_N];
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  int rate[9];
  for (int i = 0; i < 9; i++) rate[i] = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] <= 399)
      rate[0]++;
    else if (a[i] <= 799)
      rate[1]++;
    else if (a[i] <= 1199)
      rate[2]++;
    else if (a[i] <= 1599)
      rate[3]++;
    else if (a[i] <= 1999)
      rate[4]++;
    else if (a[i] <= 2399)
      rate[5]++;
    else if (a[i] <= 2799)
      rate[6]++;
    else if (a[i] <= 3199)
      rate[7]++;
    else
      rate[8]++;
  }
  int min_color = 0;
  bool UR = false;
  for (int i = 0; i < 8; i++) {
    if (rate[i] > 0) min_color++;
  }
  cout << max(min_color, 1) << " " << min(min_color + rate[8], 8) << endl;
  return 0;
}
