#include <bits/stdc++.h>
using namespace std;
int main(void) {
  vector<int> coller(9, 0);
  int n;
  int sum = 0;
  cin >> n;
  vector<int> num(n);
  int i;
  int t;
  for (i = 0; i < n; i++) {
    cin >> num[i];
  }
  for (i = 0; i < n; i++) {
    for (t = 0; t < 9; t++) {
      if ((num[i] / 400) >= 8) {
        coller[8]++;
        break;
      } else if ((num[i] / 400) == t) {
        coller[t] = 1;
      }
    }
  }
  for (i = 0; i < 8; i++) {
    sum = sum + coller[i];
  }
  if (sum == 0) {
    sum = 1;
  }
  cout << sum << endl;
  if (coller[8] != 0 && sum != 1) {
    cout << sum + coller[8] << endl;
  } else if (coller[8] == 0 || sum == 1) {
    cout << sum << endl;
  }
  return 0;
}
