#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a[100];
  cin >> N;
  bool cnt[8];
  int special = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] / 400 < 8) {
      cnt[a[i] / 400] = true;
    } else {
      special++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) sum++;
  }
  cout << sum << " " << sum + special << endl;
}
