#include <bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9 + 7;
using LL = long long;
const LL LINF = 1e18;
using namespace std;
int main() {
  int(N);
  cin >> (N);
  vector<int> vec(9, 0);
  for (int a = 0; a < (N); ++a) {
    int(b);
    cin >> (b);
    if (b <= 399) vec.at(0)++;
    if (400 <= b && b <= 799) vec.at(1)++;
    if (800 <= b && b <= 1199) vec.at(2)++;
    if (1200 <= b && b <= 1599) vec.at(3)++;
    if (1600 <= b && b <= 1999) vec.at(4)++;
    if (2000 <= b && b <= 2399) vec.at(5)++;
    if (2400 <= b && b <= 2799) vec.at(6)++;
    if (2800 <= b && b <= 3199) vec.at(7)++;
    if (3200 <= b) vec.at(8)++;
  }
  int mi = 0, ma = 0;
  for (int a = 0; a < (8); ++a) {
    if (vec.at(a) != 0) {
      mi++;
      ma++;
    }
  }
  cout << (mi != 0 ? mi : 1) << " " << (ma + vec.at(8) > 9 ? 9 : ma + vec.at(8))
       << endl;
  return 0;
}
