#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll GetDigit(ll num) { return log10(num) + 1; }
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (int)(n); i++) cin >> a[i];
  vector<int> cnt(9);
  for (int i = 0; i < (int)(n); i++) {
    if (1 <= a[i] && a[i] <= 399) cnt[0]++;
    if (400 <= a[i] && a[i] <= 799) cnt[1]++;
    if (800 <= a[i] && a[i] <= 1199) cnt[2]++;
    if (1200 <= a[i] && a[i] <= 1599) cnt[3]++;
    if (1600 <= a[i] && a[i] <= 1999) cnt[4]++;
    if (2000 <= a[i] && a[i] <= 2399) cnt[5]++;
    if (2400 <= a[i] && a[i] <= 2799) cnt[6]++;
    if (2800 <= a[i] && a[i] <= 3199) cnt[7]++;
    if (3200 <= a[i]) cnt[8]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (cnt[i] > 0) ans++;
  }
  bool flag = true;
  for (int i = 0; i < (int)(8); i++) {
    if (cnt[i] != 0) flag = false;
  }
  if (flag) {
    if (cnt[8] > 8)
      cout << 1 << " " << 8 << endl;
    else
      cout << 1 << " " << cnt[8] << endl;
    return 0;
  }
  int maxans = ans + cnt[8];
  if (maxans > 8)
    cout << ans << " " << 8 << endl;
  else
    cout << ans << " " << maxans << endl;
  return 0;
}
