#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, cnt[8] = {0}, more = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      cnt[a / 3200] = 1;
    else
      more++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) sum += cnt[i];
  cout << max(1, sum) << " " << sum + more << endl;
}
