#include <bits/stdc++.h>
using namespace std;
int n;
int t[1111];
int m[9] = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4801};
int c[10];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> t[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 9; j++) {
      if (t[i] >= m[j]) continue;
      c[j]++;
      break;
    }
  }
  int ma = 0, mi = 0, a1, a2;
  for (int i = 0; i < 9; i++) {
    if (c[i]) ma++;
  }
  if (ma == 0)
    cout << 1 << " " << c[8] << endl;
  else
    cout << ma << " " << ma + c[8] << endl;
  return 0;
}
