#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  bool colors[8];
  fill(colors, colors + 8, false);
  int target = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] < 400) {
      colors[0] = true;
    } else if (a[i] < 800) {
      colors[1] = true;
    } else if (a[i] < 1200) {
      colors[2] = true;
    } else if (a[i] < 1600) {
      colors[3] = true;
    } else if (a[i] < 2000) {
      colors[4] = true;
    } else if (a[i] < 2400) {
      colors[5] = true;
    } else if (a[i] < 2800) {
      colors[6] = true;
    } else if (a[i] < 3200) {
      colors[7] = true;
    } else {
      target++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i]) ans++;
  }
  cout << ans << " " << (ans + target < 8 ? ans + target : 8) << endl;
  return 0;
}
