#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char *argv[]) {
  int N, a;
  int arr[9] = {};
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    arr[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (arr[i] > 0) {
      ans++;
    }
  }
  cout << max(ans, 1) << ' ' << ans + arr[8] << endl;
  return 0;
}
