#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> freq(9, 0);
  int N;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a < 3200)
      freq[a / 400]++;
    else
      freq[8]++;
  }
  int cnt = 0;
  for (int i = 0; i <= 7; ++i)
    if (freq[i]) cnt++;
  cout << cnt << " " << min(8, cnt + freq[8]);
  return 0;
}
