#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int gcd(int a, int b) { return (b == 0) ? a : gcd(b, a % b); }
int main() {
  int N;
  cin >> N;
  ;
  vector<int> rank(9, 0);
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    if (rate >= 3200) rate = 3200;
    rank[rate / 400]++;
  }
  int low = 0;
  for (int i = 0; i < 8; i++) {
    if (rank[i] > 0) {
      low++;
    }
  }
  cout << low << " " << (low + rank[8]) << "\n";
  return 0;
}
