#include <bits/stdc++.h>
using namespace std;
int main() {
  srand(time(NULL));
  clock_t startTime = clock();
  ios_base::sync_with_stdio(false), cin.tie(0);
  int n;
  cin >> n;
  vector<long long> a(n);
  for (long long i = (0); i < (n); ++i) cin >> a[i];
  sort(a.begin(), a.end());
  map<int, int> m;
  for (long long i = (0); i < (n); ++i) m[a[i] / 400]++;
  int ye = 0;
  for (long long i = (0); i < (8); ++i)
    if (m[i] > 0) ye++;
  int top = 0;
  for (long long i = (0); i < (n); ++i)
    if (a[i] >= 3200) top++;
  cout << ye << " " << ye + top;
  return 0;
}
