#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> v(9);
  for (int i = 0; i < N; ++i) {
    int tmp = 0;
    cin >> tmp;
    if (tmp >= 1 && tmp <= 399) v[0]++;
    if (tmp >= 400 && tmp <= 799) v[1]++;
    if (tmp >= 800 && tmp <= 1199) v[2]++;
    if (tmp >= 1200 && tmp <= 1599) v[3]++;
    if (tmp >= 1600 && tmp <= 1999) v[4]++;
    if (tmp >= 2000 && tmp <= 2399) v[5]++;
    if (tmp >= 2400 && tmp <= 2799) v[6]++;
    if (tmp >= 2800 && tmp <= 3199) v[7]++;
    if (tmp >= 3200) v[8]++;
  }
  int ansMin = 0, ansMax = 0;
  for (int i = 0; i < v.size(); ++i) {
    if (i != 8 && v[i] > 0)
      ansMin++;
    else if (i == 8)
      ansMax = ansMin + v[i];
  }
  cout << ansMin << " " << ansMax << endl;
}
