#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(9, 0);
  for (int i = 0; i < N; i++) {
    int A;
    cin >> A;
    if (A < 400)
      a.at(0) = 1;
    else if (A < 800)
      a.at(1) = 1;
    else if (A < 1200)
      a.at(2) = 1;
    else if (A < 1600)
      a.at(3) = 1;
    else if (A < 2000)
      a.at(4) = 1;
    else if (A < 2400)
      a.at(5) = 1;
    else if (A < 2800)
      a.at(6) = 1;
    else if (A < 3200)
      a.at(7) = 1;
    else if (A >= 3200)
      a.at(8)++;
  }
  int min_ans = 0;
  for (int i = 0; i < 8; i++) {
    min_ans += a.at(i);
  }
  int max_ans = min_ans + a.at(8);
  cout << min_ans << " " << max_ans << endl;
}
