#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int f = 0;
  int scores[8] = {};
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      f++;
    } else {
      scores[a / 400]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (scores[i] > 0) ans++;
  }
  cout << ans << " " << min(ans + f, 8) << endl;
  return 0;
}
