#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], c[8], cnt = 0, box = 0;
  fill(c, c + 8, 0);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400) {
      if (c[0] == 0) {
        c[0] = 1;
        cnt++;
      }
    } else if (400 <= a[i] and a[i] <= 799) {
      if (c[1] == 0) {
        c[1] = 1;
        cnt++;
      }
    } else if (800 <= a[i] and a[i] <= 1199) {
      if (c[2] == 0) {
        c[2] = 1;
        cnt++;
      }
    } else if (1200 <= a[i] and a[i] <= 1599) {
      if (c[3] == 0) {
        c[3] = 1;
        cnt++;
      }
    } else if (1600 <= a[i] and a[i] <= 1999) {
      if (c[4] == 0) {
        c[4] = 1;
        cnt++;
      }
    } else if (2000 <= a[i] and a[i] <= 2399) {
      if (c[5] == 0) {
        c[5] = 1;
        cnt++;
      }
    } else if (2400 <= a[i] and a[i] <= 2799) {
      if (c[6] == 0) {
        c[6] = 1;
        cnt++;
      }
    } else if (2800 <= a[i] and a[i] <= 3199) {
      if (c[7] == 0) {
        c[7] = 1;
        cnt++;
      }
    } else if (3200 <= a[i])
      box++;
  }
  int ans, mi, ma;
  if (cnt < box)
    ans = cnt + box - cnt;
  else
    ans = cnt;
  if (ans > 8)
    mi = 8;
  else
    mi = ans;
  if (cnt + box > 8)
    ma = 8;
  else
    ma = cnt + box;
  cout << mi << " " << ma << endl;
}
