#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, c[10], ans = 0;
  cin >> n;
  for (int i = 0; i <= 8; i++) c[i] = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a;
    c[a / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) ans++;
  }
  cout << ans << " " << c[8] + ans;
  return 0;
}
