#include <bits/stdc++.h>
using namespace std;
long long gcm(long long a, long long b);
long long lcm(long long a, long long b);
long long fac(long long a);
int main() {
  int n;
  cin >> n;
  vector<bool> flag(9, false);
  int flag8count = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400)
      flag[0] = true;
    else if (a < 800)
      flag[1] = true;
    else if (a < 1200)
      flag[2] = true;
    else if (a < 1600)
      flag[3] = true;
    else if (a < 2000)
      flag[4] = true;
    else if (a < 2400)
      flag[5] = true;
    else if (a < 2800)
      flag[6] = true;
    else if (a < 3200)
      flag[7] = true;
    else {
      flag[8] = true;
      flag8count++;
    }
  }
  int minans = 0;
  int maxans = 0;
  for (int i = 0; i < 8; i++) {
    if (flag[i]) {
      minans++;
      maxans++;
    }
  }
  if (minans == 0 && flag[8]) minans = 1;
  cout << minans << " ";
  while (maxans < 8 && flag8count > 0) {
    maxans++;
    flag8count--;
  }
  cout << maxans << endl;
}
