#include <bits/stdc++.h>
using namespace std;
bool color[8] = {false};
int main() {
  int N;
  cin >> N;
  int x;
  int over = 0;
  for (int i = 0; i < N; i++) {
    cin >> x;
    if (x >= 3200) {
      over++;
    } else {
      color[x / 400] = true;
    }
  }
  int ans_max = over;
  int ans_min = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) {
      ans_min++;
    }
  }
  ans_max += ans_min;
  cout << ans_min << " " << ans_max << endl;
}
