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