#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a, cnt_rate[9] = {};
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a >= 3200)
      cnt_rate[8]++;
    else
      cnt_rate[a / 400]++;
  }
  int cnt_color = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt_rate[i]) cnt_color++;
  }
  cout << cnt_color << ' ' << min(8, cnt_color + cnt_rate[8]) << endl;
  return 0;
}
