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