#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<ll, ll>;
using vi = vector<int>;
using vll = vector<ll>;
using vb = vector<bool>;
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  int rates[8];
  rates[0] = 0;
  for (int i = int(0); i < int(7); i++) rates[i + 1] = rates[i] + 400;
  int n;
  cin >> n;
  int color[8] = {0};
  int wildcard = 0;
  for (int i = int(0); i < int(n); i++) {
    int r;
    cin >> r;
    if (r >= 3200) {
      wildcard++;
      continue;
    }
    for (int j = int(8) - 1; j >= int(0); j--) {
      if (r >= rates[j]) {
        color[j]++;
        break;
      }
    }
  }
  int ans = 0;
  for (int i = int(0); i < int(8); i++)
    if (color[i] >= 1) ans++;
  cout << ans << " " << min(ans + wildcard, 8) << endl;
  return 0;
}
