#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, mn = 0, mx = 0;
  cin >> n;
  map<long long, long long> rng;
  long long xt = 0;
  while (n--) {
    long long x;
    cin >> x;
    long long r;
    if (x >= 1 && x <= 399) r = 1;
    if (x >= 400 && x <= 799) r = 2;
    if (x >= 800 && x <= 1199) r = 3;
    if (x >= 1200 && x <= 1599) r = 4;
    if (x >= 1600 && x <= 1999) r = 5;
    if (x >= 2000 && x <= 2399) r = 6;
    if (x >= 2400 && x <= 2799) r = 7;
    if (x >= 2800 && x <= 3199) r = 8;
    if (x >= 3200) r = 9;
    if (r == 9)
      xt++;
    else {
      if (rng[r] == 0) mn++;
    }
    rng[r] = 1;
  }
  cout << max(mn, 1LL) << " " << min(mn + xt, 8LL);
}
