#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Pi = pair<int, int>;
using Pl = pair<ll, ll>;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = (int)(0); i < (int)(N); i++) cin >> a[i];
  vector<int> num(9);
  for (int i = (int)(0); i < (int)(N); i++) {
    if (a[i] < 400)
      num[0]++;
    else if (a[i] < 800)
      num[1]++;
    else if (a[i] < 1200)
      num[2]++;
    else if (a[i] < 1600)
      num[3]++;
    else if (a[i] < 2000)
      num[4]++;
    else if (a[i] < 2400)
      num[5]++;
    else if (a[i] < 2800)
      num[6]++;
    else if (a[i] < 3200)
      num[7]++;
    else
      num[8]++;
  }
  int m = 0;
  int M = 0;
  for (int i = (int)(0); i < (int)(8); i++) {
    if (num[i] > 0) m++;
  }
  M = m + num[8];
  cout << m << " " << M << endl;
}
