#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, min = 0, max = 0;
  cin >> N;
  vector<int> a(N);
  bool hai = false, cha = false, green = false, mizu = false, ao = false,
       ki = false, ora = false, red = false;
  for (int i = 0; i < N; i++) cin >> a.at(i);
  for (int i = 0; i < N; i++) {
    if (a.at(i) >= 1 and a.at(i) <= 399 and hai == false) {
      hai = true;
      min++;
      max++;
    } else if (a.at(i) >= 400 and a.at(i) <= 799 and cha == false) {
      cha = true;
      min++;
      max++;
    } else if (a.at(i) >= 800 and a.at(i) <= 1199 and green == false) {
      green = true;
      min++;
      max++;
    } else if (a.at(i) >= 1200 and a.at(i) <= 1599 and mizu == false) {
      mizu = true;
      min++;
      max++;
    } else if (a.at(i) >= 1600 and a.at(i) <= 1999 and ao == false) {
      ao = true;
      min++;
      max++;
    } else if (a.at(i) >= 2000 and a.at(i) <= 2399 and ki == false) {
      ki = true;
      min++;
      max++;
    } else if (a.at(i) >= 2400 and a.at(i) <= 2799 and ora == false) {
      ora = true;
      min++;
      max++;
    } else if (a.at(i) >= 2800 and a.at(i) <= 3199 and red == false) {
      red = true;
      min++;
      max++;
    } else if (a.at(i) >= 3200) {
      max++;
    } else {
      continue;
    }
  }
  cout << min << " " << max << endl;
}
