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