#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vpii = vector<pair<int, int>>;
using vpll = vector<pair<ll, ll>>;
int main(void) {
  int N;
  cin >> N;
  vector<bool> C(8, false);
  int over3200 = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      over3200++;
    else if (a >= 2800)
      C[0] = true;
    else if (a >= 2400)
      C[1] = true;
    else if (a >= 2000)
      C[2] = true;
    else if (a >= 1600)
      C[3] = true;
    else if (a >= 1200)
      C[4] = true;
    else if (a >= 800)
      C[5] = true;
    else if (a >= 400)
      C[6] = true;
    else
      C[7] = true;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (C[i]) cnt++;
  }
  cout << cnt << " " << cnt + over3200 << endl;
}
