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