#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, a;
  cin >> n;
  vector<bool> b(8);
  int rest = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    int s = a / 400;
    if (s >= 8) {
      rest++;
    } else {
      b[s] = true;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) ans++;
  }
  cout << ans << " " << min(ans + rest, 8) << endl;
}
