#include <bits/stdc++.h>
using namespace std;
using Int = long long;
Int INF = 1LL << 60;
const Int MOD = 1000000000 + 7;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  Int N;
  cin >> N;
  Int temp;
  vector<Int> color(9);
  for (Int i = 0; i < N; i++) {
    cin >> temp;
    temp /= 400;
    if (temp <= 7) {
      color[temp]++;
    } else {
      color[8]++;
    }
  }
  Int count = 0;
  for (Int i = 0; i < 8; i++) {
    if (color[i]) count++;
  }
  cout << count << " ";
  cout << count + color[8] << "\n";
}
