#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  vector<int> rate(N, 0);
  for (int i = 0; i < N; i++) {
    cin >> rate[i];
  }
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    if (rate[i] < 400)
      color[0]++;
    else if (rate[i] < 800)
      color[1]++;
    else if (rate[i] < 1200)
      color[2]++;
    else if (rate[i] < 1600)
      color[3]++;
    else if (rate[i] < 2000)
      color[4]++;
    else if (rate[i] < 2400)
      color[5]++;
    else if (rate[i] < 2800)
      color[6]++;
    else if (rate[i] < 3200)
      color[7]++;
    else
      color[8]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) ans++;
  }
  cout << ans << " " << min(ans + color[8], 8) << endl;
  return 0;
}
