#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
const long long MOD = 1e9 + 7;
const int INF = 1e9 + 7;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> rate(9, 0);
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    rate[a / 400]++;
  }
  int mi = 0, ma = 0;
  for (int i = 0; i < 8; ++i)
    if (rate[i] > 0) mi++;
  ma = mi + rate[8];
  cout << mi << " " << ma << endl;
}
