#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> arr(n);
  for (int i = 0; i < n; i++) cin >> arr[i];
  int minC = 0, maxC = 0;
  vector<int> buckets(9);
  for (int i : arr) {
    if (i >= 3200)
      buckets[8]++;
    else {
      buckets[i / 400]++;
    }
  }
  for (int i = 0; i < 8; i++)
    if (buckets[i]) minC += 1;
  maxC = minC + buckets[8];
  cout << minC << " " << maxC;
  return 0;
}
