#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int m[9] = {0};
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    m[min(a / 400, 8)] += 1;
  }
  int ans = 0;
  for (int i = (0); i < (8); ++i) {
    if (m[i] > 0) ans++;
  }
  cout << ans << " " << min(ans + m[8], 8) << endl;
  return 0;
}
