#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int n;
int a[102];
int cnt[10];
int main() {
  cin >> n;
  memset(cnt, 0, sizeof(cnt));
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    if (a[i] / 400 < 8)
      cnt[a[i] / 400]++;
    else
      cnt[8]++;
  }
  int tot1 = 0;
  for (int i = 0; i < 8; ++i) {
    if (cnt[i] > 0) tot1++;
  }
  cout << tot1 << " " << tot1 + cnt[8] << endl;
  return 0;
}
