#include <bits/stdc++.h>
const int mod = 1e9 + 7;
const int INF = 1e9;
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[8] = {0};
  int r = 0;
  for (int i = 0; i < n; i++) {
    int c;
    cin >> c;
    if (c < 3200) {
      a[c / 400]++;
    } else {
      r++;
    }
  }
  int ans1 = 0, ans2 = 0;
  int none = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) {
      ans1++;
    }
    if (a[i] == 0) {
      none++;
    }
  }
  if (ans1 + none <= 8) {
    ans2 = ans1 + r;
  } else {
    ans2 = 8;
  }
  cout << ans1 << ' ' << ans2 << endl;
}
