#include <bits/stdc++.h>
using namespace std;
const int MX = 123456;
int ar[MX], clr[10], clr1[10];
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  int n, a, xtr = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 1 && a <= 399)
      clr[1]++;
    else if (a >= 400 && a <= 799)
      clr[2]++;
    else if (a >= 800 && a <= 1199)
      clr[3]++;
    else if (a >= 1200 && a <= 1599)
      clr[4]++;
    else if (a >= 1600 && a <= 1999)
      clr[5]++;
    else if (a >= 2000 && a <= 2399)
      clr[6]++;
    else if (a >= 2400 && a <= 2799)
      clr[7]++;
    else if (a >= 2800 && a <= 3199)
      clr[8]++;
    else
      clr[8]++, xtr++;
  }
  int mn = 0, mx = 0;
  for (int i = 1; i <= 8; i++)
    if (clr[i]) mn++;
  mx = (mn + xtr);
  if (mx > 8) mx = 8;
  cout << mn << " " << mx << endl;
  return 0;
}
