#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool exist[8];
  for (int i = 0; i < 8; i++) exist[i] = false;
  int red_count = 0, count = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      red_count++;
      continue;
    }
    exist[a / 400] = true;
  }
  for (int i = 0; i < 8; i++) {
    if (exist[i]) count++;
  }
  cout << count << " " << count + red_count << endl;
}
