#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> cnt(9);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      cnt[0]++;
    else if (a >= 400 && a <= 799)
      cnt[1]++;
    else if (a >= 800 && a <= 1199)
      cnt[2]++;
    else if (a >= 1200 && a <= 1599)
      cnt[3]++;
    else if (a >= 1600 && a <= 1999)
      cnt[4]++;
    else if (a >= 2000 && a <= 2399)
      cnt[5]++;
    else if (a >= 2400 && a <= 2799)
      cnt[6]++;
    else if (a >= 2800 && a <= 3199)
      cnt[7]++;
    else
      cnt[8]++;
  }
  int n_colors = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) n_colors++;
  }
  cout << max(1, n_colors) << " " << min(8, n_colors + cnt[8]) << endl;
  return 0;
}
