#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1 << 29;
int n;
int a[101];
int b[15];
int main() {
  cin >> n;
  memset(b, 0, sizeof(b));
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    for (int j = 0; j < 14; j++) {
      if (a[i] < j * 400) {
        b[j]++;
        break;
      }
    }
  }
  int count = 0, over = 0;
  for (int i = 0; i < 14; i++) {
    if (b[i] && i <= 8)
      count++;
    else if (i > 8) {
      over += b[i];
    }
  }
  int mini, maxi;
  if (count + over >= 8)
    maxi = 8;
  else
    maxi = count + over;
  if (count)
    mini = count;
  else
    mini = 1;
  cout << mini << " " << maxi << endl;
  return 0;
}
