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