#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int br = 0;
  vector<int> a(n), b(8);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] / 400 > 7)
      br++;
    else
      b[a[i] / 400]++;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) min++;
  }
  if (min == 8) {
    cout << min << " " << min;
  } else if (min == 0) {
    cout << 1 << " " << br % 9;
  } else {
    cout << min << " " << (min + br) % 9;
  }
  return 0;
}
