#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> arr(8);
  int r8 = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int r = a / 400;
    if (r >= 8)
      r8++;
    else
      arr[r]++;
  }
  int mn = 0;
  for (int i = 0; i < 8; i++) {
    if (arr[i] > 0) mn++;
  }
  int mx = min(mn + r8, 8);
  cout << mn << " " << mx << endl;
}
