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