#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long i = 0, j = 0, k = 0, ans = 0;
  long long n, a[200], color[9] = {0};
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    color[a[i] / 400]++;
  }
  for (i = 0; i < 8; i++) {
    if (color[i] > 0) ans++;
  }
  cout << ans << " ";
  ans += color[8];
  if (ans >= 8) ans = 8;
  cout << ans << endl;
  return 0;
}
