#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A, num[8], min = 0, max = 0;
  num[8] = 0;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> A;
    if (A < 3200) {
      num[(A / 400) - 1] = 1;
    } else {
      num[8] = num[8] + 1;
    }
  }
  for (int j = 0; j < 8; j++) {
    min = min + num[j];
  }
  for (int k = 0; k < 9; k++) {
    max = max + num[k];
  }
  cout << min << max << endl;
  return 0;
}
