#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
struct __INIT {
  __INIT() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
  }
} __init;
int main() {
  int N;
  cin >> N;
  int over = 0;
  vector<int> H(N);
  vector<int> v(8, 0);
  for (int i = 0; i < N; i++) {
    cin >> H[i];
    if (H[i] >= 3200)
      over++;
    else
      v[H[i] / 400] = 1;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) sum += v[i];
  cout << sum << endl;
  cout << min(sum + over, 8) << endl;
}
