#include <bits/stdc++.h>
using namespace std;
int late[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int colors[9] = {0};
int N;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    int tmp;
    bool flag = true;
    cin >> tmp;
    for (int j = 0; j < 8; j++) {
      if (tmp < late[j]) {
        colors[j]++;
        flag = false;
        break;
      }
    }
    if (flag) colors[8]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++)
    if (colors[i] > 0) count++;
  cout << count << ' ' << min(count + colors[8], 8) << endl;
  return 0;
}
