#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr ll INF = ll(1e+18) + 1;
int main() {
  int N;
  int a[8] = {};
  int rate;
  int ans_min = 0, ans_max = 0;
  int over = 0;
  cin >> N;
  for (int i = 0; i < (N); i++) {
    cin >> rate;
    if (rate < 3200) {
      a[rate / 400]++;
    } else {
      over++;
    }
  }
  for (int i = 0; i < (8); i++) {
    if (a[i] > 0) {
      ans_min++;
    }
  }
  ans_max = ans_min + over;
  cout << ans_min << " " << ans_max << endl;
}
