#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LLINF = 1e18;
static const double pi = 3.141592653589793;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  map<int, int> dic;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 400)
      dic[0]++;
    else if (a < 800)
      dic[1]++;
    else if (a < 1200)
      dic[2]++;
    else if (a < 1600)
      dic[3]++;
    else if (a < 2000)
      dic[4]++;
    else if (a < 2400)
      dic[5]++;
    else if (a < 2800)
      dic[6]++;
    else if (a < 3200)
      dic[7]++;
    else
      dic[8]++;
  }
  int mx, mn = dic.size();
  if (dic[8] == 0)
    mx = mn;
  else {
    mx = mn + dic[8] - 1;
    mn -= 1;
  }
  cout << mn << " " << mx << endl;
}
