#include <bits/stdc++.h>
using namespace std;
int N, rate[9];
int main() {
  cin >> N;
  for (int i = 0; i < 9; i++) rate[i] = 0;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    if (1 <= r && r <= 399)
      rate[0]++;
    else if (400 <= r && r <= 799)
      rate[1]++;
    else if (800 <= r && r <= 1199)
      rate[2]++;
    else if (1200 <= r && r <= 1599)
      rate[3]++;
    else if (1600 <= r && r <= 1999)
      rate[4]++;
    else if (2000 <= r && r <= 2399)
      rate[5]++;
    else if (2400 <= r && r <= 2799)
      rate[6]++;
    else if (2800 <= r && r <= 3199)
      rate[7]++;
    else if (3200 <= r)
      rate[8]++;
  }
  int no_color = 0, min_color = 0, max_color = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0)
      min_color++;
    else
      no_color++;
  }
  if (no_color >= rate[8])
    max_color = min_color + rate[8];
  else
    max_color = min_color + no_color;
  cout << min_color << " " << max_color << endl;
  return 0;
}
