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