#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[111];
  int color[8] = {0};
  int i, k;
  int all = 0;
  cin >> N;
  for (i = 0; i <= N - 1; i++) {
    cin >> a[i];
  }
  for (i = 0; i <= N - 1; i++) {
    for (k = 0; a[i] >= 400 * (k + 1); k++) {
    }
    if (k < 8)
      color[k] = 1;
    else
      all++;
  }
  int ans = 0;
  for (i = 0; i <= 7; i++) ans += color[i];
  cout << ans << " " << ans + all;
}
