#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> color(9);
  int a;
  for (int i = 0; i < (n); ++i) {
    cin >> a;
    if (a / 400 >= 8)
      color[8]++;
    else
      color[a / 400]++;
  }
  int mini = 0;
  for (int i = 0; i < (8); ++i)
    if (color[i] != 0) mini++;
  if (mini == 0)
    cout << 1 << " " << min(color[8], 8);
  else
    cout << mini << " " << min(mini + color[8], 8);
}
