#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a[10000];
  bool color[8];
  cin >> N;
  int count = 0;
  for (int i = 0; i < 8; i++) {
    color[i] = false;
  }
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      count++;
    } else {
      color[a[i] / 400] = true;
    }
  }
  int ans1 = 0;
  int ans2 = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      ans1++;
    }
  }
  ans2 = min(8, ans1 + count);
  ans2 = max(1, ans2);
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
