#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rate[n];
  for (long long i = (0); i < (n); i++) {
    cin >> rate[i];
  }
  sort(rate, rate + n);
  int color[8] = {}, free = 0;
  for (long long i = (0); i < (n); i++) {
    if (rate[i] >= 3200)
      free++;
    else
      color[rate[i] / 400]++;
  }
  int ans = 0;
  for (long long i = (0); i < (8); i++) {
    if (color[i] > 0) ans++;
  }
  cout << ans << " " << ans + free << endl;
  return 0;
}
