#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int i, j, cnt;
  int n;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) cin >> a[i];
  cnt = 0;
  for (i = 0; i <= 7; i++) {
    for (j = 0; j < n; j++) {
      if (400 * i <= a[j] && a[j] < 400 * (i + 1)) {
        cnt++;
        break;
      }
    }
  }
  cout << cnt << endl;
  for (i = 0; i < n; i++) {
    if (a[i] >= 3200) cnt++;
  }
  cout << cnt;
}
