#include <bits/stdc++.h>
using namespace std;
template <typename T>
void putv(vector<T>& V) {
  for (auto x : V) cout << x << " ";
  cout << endl;
}
template <class T>
vector<T> getv(int n) {
  vector<T> vec;
  for (int i = (0); i < int(n); ++i) {
    T input;
    cin >> input;
    vec.emplace_back(input);
  }
  return vec;
}
int main() {
  int N;
  cin >> N;
  vector<int> a = getv<int>(N);
  for (int i = 0; i < N; ++i) {
    a[i] /= 400;
    if (a[i] > 8) a[i] = 8;
  }
  int cntr = 0;
  for (auto x : a)
    if (x > 7) cntr++;
  sort(a.begin(), a.end());
  a.erase(unique(a.begin(), a.end()), a.end());
  if (cntr > 0)
    cout << a.size() - cntr + 1 << ' ' << a.size() + cntr - 1 << endl;
  else
    cout << a.size() << ' ' << a.size() << endl;
}
