#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  int temp[8] = {0};
  int ans = 0;
  int red = 0;
  for (int i = 0; i < n; i++) {
    temp[a[i] / 400] = 1;
    if (a[i] >= 3200) red++;
  }
  for (int i = 0; i < 8; i++) {
    if (temp[i] == 1) ans++;
  }
  cout << ans << " " << ans + red << endl;
}
