#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  int cnt[9];
  for (int i = 0; i < 9; i++) cnt[i] = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int cur;
    cin >> cur;
    if (cur / 400 >= 8) {
      cnt[8]++;
    } else {
      cnt[cur / 400]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) ans++;
  }
  cout << ans << " " << min(ans + cnt[8], 8);
}
