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