#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int rate[n + 1];
  int ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> rate[i];
    rate[i] = rate[i] / 400;
  }
  rate[n] = 100;
  int count = 0;
  int MAX;
  sort(rate, rate + n);
  for (int i = 0; i < n; i++) {
    if (rate[i] != rate[i + 1] && rate[i + 1] != 8) ans++;
    if (rate[i] == 8) count++;
  }
  if (count <= 8)
    MAX = ans + count;
  else if (count > 8)
    MAX = ans + 8;
  cout << ans << ' ' << MAX << endl;
  return 0;
}
