#include <bits/stdc++.h>
using namespace std;
const int con = 8;
int N;
int a;
int CountA;
int Count;
int ans;
bool flag[8];
int main(void) {
  CountA = 0;
  Count = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    ans = a / 400;
    if (ans >= con) {
      CountA++;
    } else {
      flag[ans] = true;
    }
  }
  for (int i = 0; i < con; i++) {
    if (flag[i]) Count++;
  }
  cout << Count << " " << (Count + CountA) << endl;
  return 0;
}
