#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int hi = 0, low = 0;
  int x = 0;
  int ans = 0;
  for (int i = 0; i <= 7; ++i) {
    int lp = i * 400;
    int hp = (i + 1) * 400;
    for (int j = 0; j < n; ++j) {
      if (lp <= a[j] && hp > a[j]) {
        ++ans;
        break;
      }
    }
  }
  for (int i = 0; i < n; ++i)
    if (3200 <= a[i]) ++x;
  if (x) {
    if (x + ans <= 8)
      hi = x + ans;
    else
      hi = 8;
  } else {
    hi = ans;
  }
  if (ans >= 1)
    low = ans;
  else
    low = 1;
  cout << low << " " << hi << endl;
  return 0;
}
