#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
template <class T>
using v = vector<T>;
template <class T>
using vv = v<v<T>>;
int main() {
  int N;
  cin >> N;
  v<int> color(8, 0);
  int free = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      color[a / 400] = 1;
    else
      free++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    min += color[i];
    max += color[i];
  }
  if (min == 0) min = 1;
  max = max + free >= 8 ? 8 : max + free;
  cout << min << " " << max << endl;
  return 0;
}
