#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 30;
const long long LLINF = 1LL << 60;
int mod = 1000000007;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int rank[9] = {};
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    rank[min(a / 400, 8)]++;
  }
  int mn = 0, mx = 0;
  for (int i = 0; i < 8; i++)
    if (rank[i] > 0) mn++;
  mx = mn + rank[8];
  cout << mn << " " << mx << endl;
  return 0;
}
