#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long mod2 = 998244353;
const long long INF = 1e18;
const long double EPS = 1e-10;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  vector<bool> c(8, false);
  int res = 0;
  for (int i = 0; i < (n); ++i) {
    if (a[i] >= 3200)
      res++;
    else
      c[a[i] / 400] = true;
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i) {
    if (c[i]) ans++;
  }
  cout << max(1, ans) << " " << min(8, ans + res) << endl;
  return 0;
}
