#include <bits/stdc++.h>
using namespace std;
int a[110], lev[10];
int main() {
  int n;
  cin >> n;
  memset(lev, 0, sizeof(lev));
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    lev[a[i] / 400]++;
  }
  int ans1 = 0, ans2 = 0;
  for (int i = 0; i < 8; i++) {
    if (lev[i]) ans1++;
  }
  ans2 = ans1 + lev[8];
  cout << ans1 << ' ' << ans2 << endl;
  return 0;
}
