#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int rate[9];
  memset(rate, 0, sizeof(rate));
  for (int i = (int)0; i < (int)N; i++) {
    int a;
    cin >> a;
    rate[min(a / 400, 8)]++;
  }
  long long rsl = 0;
  for (int i = (int)0; i < (int)8; i++)
    if (rate[i] > 0) rsl++;
  cout << rsl << " " << rsl + rate[8] << endl;
}
