#include <bits/stdc++.h>
using namespace std;
int n;
int colors[10];
int in[107];
int main() {
  cin >> n;
  int cnt_red = 0;
  bool flg = false;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &in[i]);
    if (in[i] < 3200)
      flg = true;
    else
      cnt_red++;
    if (in[i] >= 1 && in[i] <= 399) colors[1]++;
    if (in[i] >= 400 && in[i] <= 799) colors[2]++;
    if (in[i] >= 800 && in[i] <= 1199) colors[3]++;
    if (in[i] >= 1200 && in[i] <= 1599) colors[4]++;
    if (in[i] >= 1600 && in[i] <= 1999) colors[5]++;
    if (in[i] >= 2000 && in[i] <= 2399) colors[6]++;
    if (in[i] >= 2400 && in[i] <= 2799) colors[7]++;
    if (in[i] >= 2800 && in[i] <= 3199) colors[8]++;
  }
  int cnt = 0;
  if (flg) {
    for (int i = 1; i <= 8; i++)
      if (colors[i]) cnt++;
    cout << cnt << " ";
  } else {
    cout << 1 << " ";
  }
  if (cnt + cnt_red > 8)
    cout << 8;
  else
    cout << cnt + cnt_red;
}
