#include <bits/stdc++.h>
using namespace std;
int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, 1, -1};
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  vector<int> rate = {0, 4, 8, 12, 16, 20, 24, 28, 32, 100};
  vector<int> num(9, 0);
  for (int i = 0; i < n; i++) {
    int tmp = v[i] / 100;
    int t = 0;
    while (tmp >= rate[t]) {
      t++;
    }
    num[t - 1]++;
  }
  int mini = 0, maxi = 0;
  for (int i = 0; i < 9; i++) {
    if (i != 8) {
      if (num[i] != 0) {
        mini++;
        maxi++;
      }
    } else {
      if (num[i] != 0) {
        maxi += num[i];
      }
    }
  }
  cout << mini << " " << maxi << endl;
}
