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