#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<int> sum(9, 0);
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    if (a >= 3200)
      sum[8]++;
    else
      sum[a / 400]++;
  }
  int mn = 0;
  int mx = 0;
  for (int i = 0; i < (8); ++i)
    if (sum[i] > 0) mn++;
  if (mn == 0) mn = 1;
  mx = mn + sum[8];
  cout << mn << " " << mx << endl;
}
