#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int N;
  cin >> N;
  int mi = 0;
  int mx = 0;
  vector<int> arr(9, 0);
  int cur;
  int sum = 0;
  for (int i = 0; i < N; i++) {
    cin >> cur;
    if (cur >= 1 && cur <= 399 && arr[0] == 0) {
      arr[0]++;
      sum++;
    }
    if (cur >= 400 && cur <= 799 && arr[1] == 0) {
      arr[1]++;
      sum++;
    }
    if (cur >= 800 && cur <= 1199 && arr[2] == 0) {
      arr[2]++;
      sum++;
    }
    if (cur >= 1200 && cur <= 1599 && arr[3] == 0) {
      arr[3]++;
      sum++;
    }
    if (cur >= 1600 && cur <= 1999 && arr[4] == 0) {
      arr[4]++;
      sum++;
    }
    if (cur >= 2000 && cur <= 2399 && arr[5] == 0) {
      arr[5]++;
      sum++;
    }
    if (cur >= 2400 && cur <= 2799 && arr[6] == 0) {
      arr[6]++;
      sum++;
    }
    if (cur >= 2800 && cur <= 3199 && arr[7] == 0) {
      arr[7]++;
      sum++;
    }
    if (cur >= 3200) {
      arr[8]++;
    }
  }
  int summin = sum;
  int summax = min(sum + arr[8], 8);
  cout << summin << " " << summax << endl;
  return 0;
}
