#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a;
  int col[10];
  for (int i = 0; i < 10; i++) col[i] = 0;
  for (int i = 0; i < N; i++) {
    cin >> a;
    int num = 8;
    if (a < 400)
      num = 0;
    else if (a < 800)
      num = 1;
    else if (a < 1200)
      num = 2;
    else if (a < 1600)
      num = 3;
    else if (a < 2000)
      num = 4;
    else if (a < 2400)
      num = 5;
    else if (a < 2800)
      num = 6;
    else if (a < 3200)
      num = 7;
    col[num]++;
  }
  int s = 0;
  for (int i = 0; i < 8; i++) {
    if (col[i] > 0) s++;
  }
  if (s == 0) s++;
  cout << s << " " << s + col[8] << endl;
  ;
}
