#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
double pi = 3.1415926535898;
const long long M = 1e9 + 7;
const int N = 100100;
const int inf = INT_MAX;
const double eps = 1e-7;
const long long iinf = -1e18;
int a[200];
int n;
int f[10];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cin >> n;
  for (int i = 0; i < int(n); i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      f[8]++;
      continue;
    }
    f[(a[i]) / 400]++;
  }
  int ans = 0;
  for (int i = 0; i <= int(7); i++) {
    ans += !!f[i];
  }
  cout << ans << ' ' << min(8, f[8] + ans) << endl;
}
