#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> cats(9);
  for (int i = 0; i < N; ++i) {
    int a_i;
    cin >> a_i;
    if (a_i >= 1 and a_i < 400) {
      cats[0]++;
    } else if (a_i >= 400 and a_i < 800) {
      cats[1]++;
    } else if (a_i >= 800 and a_i < 1200) {
      cats[2]++;
    } else if (a_i >= 1200 and a_i < 1600) {
      cats[3]++;
    } else if (a_i >= 1600 and a_i < 2000) {
      cats[4]++;
    } else if (a_i >= 2000 and a_i < 2400) {
      cats[5]++;
    } else if (a_i >= 2400 and a_i < 2800) {
      cats[6]++;
    } else if (a_i >= 2800 and a_i < 3200) {
      cats[7]++;
    } else if (a_i >= 3200) {
      cats[8]++;
    }
  }
  int mn_res = 0;
  for (int i = 0; i < 8; ++i) {
    mn_res += (cats[i] > 0);
  }
  int mx_res = mn_res + cats[8];
  cout << mn_res << " " << mx_res << '\n';
}
