#include <bits/stdc++.h>
using namespace std;
template <class T>
inline T gcd(T a, T b) {
  T c;
  while (b != 0) {
    c = a % b;
    a = b;
    b = c;
  }
  return a;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  } else {
    return 0;
  }
}
int main() {
  int n;
  cin >> n;
  int a[1000];
  int y = 0;
  int v[10] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] > 3199)
      y++;
    else
      v[a[i] / 400]++;
  }
  int x = 0;
  for (int i = 0; i < 8; i++) {
    if (v[i] != 0) {
      x++;
    }
  }
  cout << x << " " << min(x + y, 8) << endl;
}
