#include <bits/stdc++.h>
using namespace std;
int h[12345], A[12345];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> A[i];
  }
  int c = 0;
  for (int i = 0; i < n; i++) {
    if (A[i] <= 399 && A[i] >= 1) h[0]++;
    if (A[i] <= 799 && A[i] >= 400) h[1]++;
    if (A[i] <= 1199 && A[i] >= 800) h[2]++;
    if (A[i] <= 1599 && A[i] >= 1200) h[3]++;
    if (A[i] <= 1999 && A[i] >= 1600) h[4]++;
    if (A[i] <= 2399 && A[i] >= 2000) h[5]++;
    if (A[i] <= 2799 && A[i] >= 2400) h[6]++;
    if (A[i] <= 3199 && A[i] >= 2800) h[7]++;
    if (A[i] >= 3200) h[8]++;
  }
  int c1 = 0;
  for (int i = 0; i <= 7; i++)
    if (h[i]) c1++;
  int mn = c1;
  int mx = c1 + h[8];
  cout << mn << " " << mx << "\n";
  return 0;
}
