#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int k;
  int mp[10];
  int f = 0;
  int cnt = 0;
  for (int i = 1; i <= 8; ++i) mp[i] = 0;
  for (int i = 1; i <= n; ++i) {
    cin >> k;
    if (k >= 1 && k <= 399) {
      mp[1]++;
    }
    if (k >= 400 && k <= 799) {
      mp[2]++;
    }
    if (k >= 800 && k <= 1199) {
      mp[3]++;
    }
    if (k >= 1200 && k <= 1599) {
      mp[4]++;
    }
    if (k >= 1600 && k <= 1999) {
      mp[5]++;
    }
    if (k >= 2000 && k <= 2399) {
      mp[6]++;
    }
    if (k >= 2400 && k <= 2799) {
      mp[7]++;
    }
    if (k >= 2800 && k <= 3199) {
      mp[8]++;
    }
    if (k >= 3200) {
      f++;
    }
  }
  for (int i = 1; i <= 8; ++i) {
    if (mp[i] != 0) cnt++;
  }
  if (f) {
    for (int i = 1; i <= 8; ++i) {
      if (mp[i] == 0 && f != 0) {
        mp[i]++;
        f--;
      }
    }
    int maxx = 0;
    for (int i = 1; i <= 8; ++i) {
      if (mp[i] != 0) maxx++;
    }
    printf("%d %d\n", cnt, maxx);
  } else {
    printf("%d %d\n", cnt, cnt);
  }
  return 0;
}
