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