#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rate[9]{0};
  int a[101];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    rate[min(a[i] / 400, 8)]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      ans++;
    }
  }
  cout << ans << " " << min(ans + rate[8], 8) << endl;
}
