#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int n3200 = 0;
  vector<int> v(8, 0);
  for (auto i = 0; i < n; i++) {
    int r;
    cin >> r;
    if (r >= 1 && r <= 399)
      v[0]++;
    else if (r >= 400 && r <= 799)
      v[1]++;
    else if (r >= 800 && r <= 1199)
      v[2]++;
    else if (r >= 1200 && r <= 1599)
      v[3]++;
    else if (r >= 1600 && r <= 1999)
      v[4]++;
    else if (r >= 2000 && r <= 2399)
      v[5]++;
    else if (r >= 2400 && r <= 2799)
      v[6]++;
    else if (r >= 2800 && r <= 3199)
      v[7]++;
    else
      n3200++;
  }
  int minc = 0;
  for (int i = 0; i < 8; i++)
    if (v[i]) minc++;
  int maxc = minc + n3200;
  minc = minc == 0 ? 1 : minc;
  maxc = maxc > 8 ? 8 : maxc;
  cout << minc << " " << maxc;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  solve();
  cerr << "\n\n~" << 500 * clock() / CLOCKS_PER_SEC << "ms\n";
  return 0;
}
