#include <bits/stdc++.h>
using namespace std;
int C[8], c1, c2;
int n, a;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      C[a / 400]++;
    else
      c2++;
  }
  for (int i = 0; i < 8; i++)
    if (C[i]) c1++;
  cout << c1 << " " << c1 + c2;
}
