#include <bits/stdc++.h>
using namespace std;
bool color[8];
int main() {
  int N;
  cin >> N;
  int all = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    for (int k = 0; k < 8; k++) {
      if (a < 400 * (k + 1)) {
        color[k] = true;
        break;
      }
      if (k == 7) all++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) ans++;
  }
  int ans_max = min(8, ans + all);
  printf("%d %d\n", ans, ans_max);
  return 0;
}
