#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> g(9, 0);
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x >= 3200) x = 3200;
    g.at(x / 400)++;
  }
  int min = 0;
  int max = 0;
  for (int i = 0; i < 8; i++)
    if (g.at(i) >= 1) min++;
  int k = g.at(8);
  if (8 - min <= k) k = 8 - min;
  max = min + k;
  if (k >= 1 && min == 0) min = 1;
  cout << min << " " << max << endl;
}
