#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[8] = {};
  int n;
  cin >> n;
  int tmp;
  int big = 0;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    if (tmp < 3200) {
      color[tmp / 400]++;
    } else {
      big++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) ans++;
  }
  cout << ans << " " << ans + big << endl;
  return 0;
}
