#include <bits/stdc++.h>
using namespace std;
int ratemax = 0;
map<int, int> m;
void check(int tmp) {
  if (1 <= tmp && tmp <= 399)
    m[0]++;
  else if (400 <= tmp && tmp <= 799)
    m[1]++;
  else if (800 <= tmp && tmp <= 1199)
    m[2]++;
  else if (1200 <= tmp && tmp <= 1599)
    m[3]++;
  else if (1600 <= tmp && tmp <= 1999)
    m[4]++;
  else if (2000 <= tmp && tmp <= 2399)
    m[5]++;
  else if (2400 <= tmp && tmp <= 2799)
    m[6]++;
  else if (2800 <= tmp && tmp <= 3199)
    m[7]++;
  else
    ratemax++;
  return;
}
int main() {
  int N;
  if (scanf("%d", &N) < 1) return 0;
  int tmp;
  for (int i = 0; i < N; i++) {
    if (scanf("%d", &tmp) < 1) return 0;
    check(tmp);
  }
  int num = m.size();
  printf("%d %d\n", num ? num : 1, num + ratemax > 8 ? 8 : num + ratemax);
  return 0;
}
