#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int n, a, cnt = 0;
  int color[8] = {0};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    for (int j = 0; j < 8; j++) {
      if (400 * j <= a && a < 400 * (j + 1)) {
        color[j] = 1;
      }
    }
    if (a >= 3200) cnt++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) ans++;
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
