#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> S(9);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 400)
      S[0] = 1;
    else if (a < 800)
      S[1] = 1;
    else if (a < 1200)
      S[2] = 1;
    else if (a < 1600)
      S[3] = 1;
    else if (a < 2000)
      S[4] = 1;
    else if (a < 2400)
      S[5] = 1;
    else if (a < 2800)
      S[6] = 1;
    else if (a < 3200)
      S[7] = 1;
    else
      S[8]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    cnt += S[i];
  }
  if (cnt == 0)
    cout << 1 << " " << S[8] << endl;
  else
    cout << cnt << " " << min(cnt + S[8], 8) << endl;
}
