#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, s = 0, d = 0;
  int clr[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> m;
    if (m >= 1 && m <= 399) clr[0]++;
    if (m >= 400 && m <= 799) clr[1]++;
    if (m >= 800 && m <= 1199) clr[2]++;
    if (m >= 1200 && m <= 1599) clr[3]++;
    if (m >= 1600 && m <= 1999) clr[4]++;
    if (m >= 2000 && m <= 2399) clr[5]++;
    if (m >= 2400 && m <= 2799) clr[6]++;
    if (m >= 2800 && m <= 3199) clr[7]++;
    if (m >= 3200) clr[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (clr[i] > 0) d++;
  }
  s = d;
  if (clr[8] >= 8)
    s += 8;
  else
    s += clr[8];
  cout << d << " " << s << endl;
  return 0;
}
