#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll mod = 1000000007;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = (0); i < (n); ++i) cin >> a[i];
  vector<bool> v(8);
  int num = 0;
  for (int i = (0); i < (n); ++i) {
    if (a[i] < 3200) {
      v[a[i] / 400] = true;
    } else {
      num++;
    }
  }
  int ans1 = 0;
  for (int i = (0); i < (8); ++i) {
    if (v[i]) ans1++;
  }
  ans1 = max(ans1, 1);
  int ans2 = ans1 + num;
  ans2 = min(ans2, 8);
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
