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