#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100], ans = 0, cnt = 0;
  bool flag[8];
  memset(flag, 1, sizeof(flag));
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (flag[a[i] / 400]) {
      ans++;
      flag[a[i] / 400] = false;
    } else if (a[i] >= 3200) {
      if (ans == 0) {
        ans++;
      } else {
        cnt++;
      }
    }
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
