#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> cflag(8);
  int overrate = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate < 3200) {
      cflag.at(rate / 400) = 1;
    } else {
      overrate++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += cflag.at(i);
  }
  if (ans == 0) {
    cout << ans + 1 << " " << min(8, ans + overrate) << endl;
  } else {
    cout << ans << " " << min(8, ans + overrate) << endl;
  }
}
