#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 2147483647;
const long double PI = 3.14159265358979323846;
int main(void) {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < (N); ++i) cin >> a[i];
  int c[9];
  for (int i = 0; i < (9); ++i) c[i] = 0;
  for (int i = 0; i < (N); ++i) {
    if (a[i] < 400)
      ++c[0];
    else if (a[i] < 800)
      ++c[1];
    else if (a[i] < 1200)
      ++c[2];
    else if (a[i] < 1600)
      ++c[3];
    else if (a[i] < 2000)
      ++c[4];
    else if (a[i] < 2400)
      ++c[5];
    else if (a[i] < 2800)
      ++c[6];
    else if (a[i] < 3200)
      ++c[7];
    else
      ++c[8];
  }
  int mn, mx;
  int kind = 0;
  for (int i = 0; i < (8); ++i) {
    if (c[i] > 0) ++kind;
  }
  if (kind == 0) {
    mn = 1;
    mx = min(c[8], 8);
  } else {
    mn = kind;
    mx = min(c[8] + kind, 8);
  }
  cout << mn << " " << mx << endl;
  return 0;
}
