#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int gray = 0;
  int brown = 0;
  int green = 0;
  int lightblue = 0;
  int blue = 0;
  int yellow = 0;
  int orange = 0;
  int red = 0;
  int above_3200 = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a <= 399) gray = 1;
    if (a >= 400 && a <= 799) brown = 1;
    if (a >= 800 && a <= 1199) green = 1;
    if (a >= 1200 && a <= 1599) lightblue = 1;
    if (a >= 1600 && a <= 1999) blue = 1;
    if (a >= 2000 && a <= 2399) yellow = 1;
    if (a >= 2400 && a <= 2799) orange = 1;
    if (a >= 2800 && a <= 3199) red = 1;
    if (a >= 3200) above_3200++;
  }
  int ans = gray + brown + green + lightblue + blue + yellow + orange + red;
  cout << ans << " " << min(8, ans + above_3200) << endl;
}
