#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const long long LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
int main() {
  vector<int> cnt(9);
  int N;
  cin >> N;
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    cnt[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += (cnt[i] > 0);
  }
  cout << ans + max(cnt[8] - ans, 0) << ' ' << ans + cnt[8] << '\n';
}
