#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(100);
  vector<int> count(9);
  for (int i = 0; i < 9; i++) count[i] = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] <= 399)
      count[0]++;
    else if (a[i] <= 799)
      count[1]++;
    else if (a[i] <= 1199)
      count[2]++;
    else if (a[i] <= 1599)
      count[3]++;
    else if (a[i] <= 1999)
      count[4]++;
    else if (a[i] <= 2399)
      count[5]++;
    else if (a[i] <= 2799)
      count[6]++;
    else if (a[i] <= 3199)
      count[7]++;
    else
      count[8]++;
  }
  int MIN = 0, MAX = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] > 0) MIN++;
  }
  MAX = min(9, MIN + count[8]);
  printf("%d %d\n", MIN, MAX);
  return 0;
}
