#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<bool> check(8, false);
  int b = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399) check.at(0) = true;
    if (a >= 400 && a <= 799) check.at(1) = true;
    if (a >= 800 && a <= 1199) check.at(2) = true;
    if (a >= 1200 && a <= 1599) check.at(3) = true;
    if (a >= 1600 && a <= 1999) check.at(4) = true;
    if (a >= 2000 && a <= 2399) check.at(5) = true;
    if (a >= 2400 && a <= 2799) check.at(6) = true;
    if (a >= 2800 && a <= 3199) check.at(7) = true;
    if (a >= 3200) b++;
  }
  int ans1 = 0;
  for (int i = 0; i < 8; i++) {
    if (check.at(i)) ans1++;
  }
  int ans2 = min(8, ans1 + b);
  cout << ans1 << " " << ans2 << endl;
}
