#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr int inf = 0x3f3f3f3f;
constexpr ll linf = 0x3f3f3f3f3f3f3f3fLL;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> v(9);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    v[min(8, a / 400)]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (v[i]) ans++;
  cout << max(ans, v[8]) << " " << ans + v[8] << endl;
  return 0;
}
