#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[] = {0, 0, 0, 0, 0, 0, 0, 0};
  int N;
  int A;
  int cnt = 0;
  int ANS;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> A;
    if (A < 3200)
      color[A / 400] += 1;
    else
      cnt++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) ANS++;
  }
  cout << ANS << " " << ANS + cnt << endl;
  return 0;
}
