#include <bits/stdc++.h>
using namespace std;
vector<int> sosuu2(100001, 0);
vector<int> sosuu3(100001, 0);
vector<int> sosuu;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  vector<int> arr(8, 0);
  int jiyuu = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      jiyuu++;
    } else {
      arr[a / 400]++;
    }
  }
  int saisyo = 0;
  for (int i = 0; i < 8; i++) {
    if (arr[i] > 0) {
      saisyo++;
    }
  }
  cout << saisyo << " " << min(8, saisyo + jiyuu) << "\n";
}
