#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  int a;
  int color[9] = {};
  int ans = 0;
  int amin = 0, amax;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (a < 3200) {
      for (int j = 0; j < 8; ++j) {
        if (400 * j <= a && 400 * (j + 1) - 1 >= a) {
          color[j]++;
        }
      }
    } else
      color[8]++;
  }
  for (int i = 0; i < 8; ++i) {
    if (color[i] != 0) ans++;
  }
  if (ans == 0) amin++;
  amin += ans;
  if (ans + color[8] < 8)
    amax = ans + color[8];
  else
    amax = 8;
  cout << amin << " " << amax << endl;
}
