#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll MOD = 1000000007;
int main() {
  int colors[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 5000};
  int C = 8;
  vector<int> count(C + 1, 0);
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < C + 1; j++) {
      if (a < colors[j]) {
        count[j]++;
        break;
      }
    }
  }
  int ans = 0;
  for (int j = 0; j < C; j++) {
    if (count[j] > 0) {
      ans++;
    }
  }
  cout << max(1, ans) << " " << min(ans + count[C], C) << endl;
  return 0;
}
