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