#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> v(N), c(8, 0);
  int free_color = 0;
  for (int i = 0; i < N; ++i) {
    cin >> v[i];
    if (v[i] < 400)
      c[0] = 1;
    else if (v[i] > 399 && v[i] < 800)
      c[1] = 1;
    else if (v[i] > 799 && v[i] < 1200)
      c[2] = 1;
    else if (v[i] > 1199 && v[i] < 1600)
      c[3] = 1;
    else if (v[i] > 1599 && v[i] < 2000)
      c[4] = 1;
    else if (v[i] > 1999 && v[i] < 2400)
      c[5] = 1;
    else if (v[i] > 2399 && v[i] < 2800)
      c[6] = 1;
    else if (v[i] > 2799 && v[i] < 3200)
      c[7] = 1;
    else if (v[i] > 3199)
      free_color += 1;
  }
  int sum = accumulate(c.begin(), c.end(), 0);
  if (sum + free_color <= 8)
    cout << sum << " " << sum + free_color << endl;
  else
    cout << sum << " " << 8 << endl;
  return 0;
}
