#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int N;
  cin >> N;
  int rate[9];
  for (int i = 0; i < (9); i++) rate[i] = 0;
  for (int i = 0; i < (N); i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8)
      rate[8]++;
    else
      rate[a] = 1;
  }
  int ans_min = 0, ans_max;
  for (int i = 0; i < (8); i++) ans_min += rate[i];
  ans_max = ans_min + rate[8];
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
