#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
int main() {
  int n;
  cin >> n;
  int a[n];
  int sum = 0;
  int col[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400)
      col[0]++;
    else if (a[i] < 800)
      col[1]++;
    else if (a[i] < 1200)
      col[2]++;
    else if (a[i] < 1600)
      col[3]++;
    else if (a[i] < 2000)
      col[4]++;
    else if (a[i] < 2400)
      col[5]++;
    else if (a[i] < 2800)
      col[6]++;
    else if (a[i] < 3200)
      col[7]++;
    else
      col[8]++;
  }
  for (int i = 0; i < 8; i++)
    if (col[i] > 0) sum++;
  if (sum == 0) sum = 1;
  cout << sum << " " << sum + col[8];
  return 0;
}
