#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) cin >> a[i];
  int red = 0;
  int cnt[8] = {};
  for (int i = 0; i < n; ++i) {
    if (a[i] < 400)
      ++cnt[0];
    else if (a[i] < 800)
      ++cnt[1];
    else if (a[i] < 1200)
      ++cnt[2];
    else if (a[i] < 1600)
      ++cnt[3];
    else if (a[i] < 2000)
      ++cnt[4];
    else if (a[i] < 2400)
      ++cnt[5];
    else if (a[i] < 2800)
      ++cnt[6];
    else if (a[i] < 3200)
      ++cnt[7];
    else
      ++red;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i)
    if (cnt[i]) ++ans;
  ;
  if (!ans && red)
    cout << 1 << " ";
  else
    cout << ans << " ";
  if (ans + red >= 8)
    cout << 8 << endl;
  else
    cout << ans + red << endl;
  return 0;
}
