#include <bits/stdc++.h>
using namespace std;
int ctoi(char c) { return c - '0'; }
int ord(char c) { return c - 'a'; }
int len(string s) { return s.length(); }
int itoc(int i) { return i + 'a'; }
float dnum(int N) { return floor(log10(N)) + 1; }
int fibnth(int N) {
  int p = (round(pow(1 + sqrt(5), N))) - (round(pow(1 - sqrt(5), N)));
  int p2 = round(pow(2, N)) * (sqrt(5));
  return p / p2;
}
int main() {
  int N;
  cin >> N;
  set<int> s;
  int uniqueval = 8, cnt = 0;
  for (int x, i = 0; i < N; i++) {
    cin >> x;
    int val = 0;
    if (x >= 400 and x <= 799) {
      val = 1;
    }
    if (x >= 800 and x <= 1199) {
      val = 2;
    }
    if (x >= 1200 and x <= 1599) {
      val = 3;
    }
    if (x >= 1600 and x <= 1999) {
      val = 4;
    }
    if (x >= 2000 and x <= 2399) {
      val = 5;
    }
    if (x >= 2400 and x <= 2799) {
      val = 6;
    }
    if (x >= 2800 and x <= 3199) {
      val = 7;
    }
    if (x >= 3200) {
      cnt++;
      val = uniqueval;
      uniqueval++;
    }
    s.insert(val);
  }
  cout << s.size() - cnt << " " << s.size() << endl;
  return 0;
}
