#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int gr = 0, br = 0, grn = 0, lbl = 0, bl = 0, ye = 0, ora = 0, re = 0, fr = 0;
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a < 400 && gr == 0)
      gr++;
    else if (a >= 400 && a < 800 && br == 0)
      br++;
    else if (a >= 800 && a < 1200 && grn == 0)
      grn++;
    else if (a >= 1200 && a < 1600 && lbl == 0)
      lbl++;
    else if (a >= 1600 && a < 2000 && br == 0)
      br++;
    else if (a >= 2000 && a < 2400 && ye == 0)
      ye++;
    else if (a >= 2400 && a < 2800 && ora == 0)
      ora++;
    else if (a >= 2800 && a < 3200 && re == 0)
      re++;
    else if (a >= 3200)
      fr++;
  }
  int sum = gr + br + grn + lbl + bl + ye + ora + re;
  if (sum != 0) {
    cout << sum << " " << sum + fr << endl;
  } else if (fr) {
    cout << 1 << " " << fr << endl;
  }
}
