#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], c[8] = {0, 0, 0, 0, 0, 0, 0, 0}, f = 0, ans = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    if (a[i] < 400) c[0]++;
    if (a[i] >= 400 && a[i] < 800) c[1]++;
    if (a[i] >= 800 && a[i] < 1200) c[2]++;
    if (a[i] >= 1200 && a[i] < 1600) c[3]++;
    if (a[i] >= 1600 && a[i] < 2000) c[4]++;
    if (a[i] >= 2000 && a[i] < 2400) c[5]++;
    if (a[i] >= 2400 && a[i] < 2800) c[6]++;
    if (a[i] >= 2800 && a[i] < 3200) c[7]++;
    if (a[i] >= 3200) f++;
  }
  for (int i = 0; i < 8; i++) {
    if (c[i] != 0) ans++;
  }
  cout << max(ans, 1) << " " << min(8, ans + f) << endl;
  return 0;
}
