#include <bits/stdc++.h>
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
const int MOD = int(1e9) + 7;
using namespace std;
using pii = pair<int, int>;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, a, color[10] = {};
  cin >> n;
  for (int i = 0; i < (n); i++) {
    cin >> a;
    if (a < 3200) {
      color[(a + 1) / 400]++;
    } else {
      color[9]++;
    }
  }
  int sum = 0;
  for (int i = 1; i <= (8); i++) {
    if (color[i]) {
      sum++;
    }
  }
  if (sum == 0) {
    sum++;
    color[9]--;
  }
  cout << sum << " " << sum + color[9] << '\n';
  return 0;
}
