#include <bits/stdc++.h>
using namespace std;
int idx(int x) {
  if (x <= 399) return 0;
  if (x <= 799) return 1;
  if (x <= 1199) return 2;
  if (x <= 1599) return 3;
  if (x <= 1999) return 4;
  if (x <= 2399) return 5;
  if (x <= 2799) return 6;
  if (x <= 3199) return 7;
  return 8;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = (0); i < (N); i++) cin >> a[i];
  vector<int> type(9, 0);
  for (int i = (0); i < (N); i++) {
    type[idx(a[i])]++;
  }
  int mn = 0;
  for (int i = (0); i < (8); i++) {
    if (type[i] > 0) mn++;
  }
  cout << max(mn, 1) << " " << min(mn + type[8], 8) << endl;
}
