#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  std::vector<int> a(n);
  for (auto& i : a) std::cin >> i;
  ;
  int ans1 = 0, ans2 = 0;
  auto f = vector<bool>(8);
  int cnt = 0;
  for (int i = 0; (i) < (int)(8); i++) f[i] = false;
  for (int i = 0; (i) < (int)(n); i++) {
    for (int j = 0; (j) < (int)(8); j++) {
      if (a[i] >= 400 * j && a[i] < 400 * (j + 1)) f[j] = true;
    }
    if (a[i] >= 3200) cnt++;
  }
  for (int i = 0; (i) < (int)(8); i++) {
    if (f[i]) {
      ans1++;
      ans2++;
    }
  }
  if (cnt) {
    ans1 = max(1, ans1);
    ans2 = min(ans2 + cnt, 8);
  }
  cout << ans1 << " " << ans2 << endl;
}
