#include <bits/stdc++.h>
using namespace std;
int main() {
  bool color[8];
  for (int i = 0; i < 8; i++) color[i] = false;
  int N;
  cin >> N;
  int fr = 0;
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    if (rate < 3200)
      color[rate / 400] = true;
    else
      fr++;
  }
  int n = 0;
  for (int i = 0; i < 8; i++)
    if (color[i]) n++;
  cout << n << " " << fr + n << endl;
}
