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