#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int color[8];
  for (int i = 0; i < 8; i++) color[i] = 0;
  int count = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] <= 3199) {
      color[a[i] / 400]++;
    } else
      count++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) ans++;
  }
  cout << ans << " " << min({8, ans + count, n}) << endl;
}
