#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> rate(8);
  int ans, cnt = 0;
  bool stayFlag = false;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      rate[a / 400] = true;
    } else {
      cnt++;
    }
  }
  for (int i = 0; i < rate.size(); i++) {
    if (rate[i] == true) {
      ans++;
      stayFlag = true;
    }
  }
  if (stayFlag == true) {
    cout << ans << " " << ans + cnt << endl;
  } else {
    cout << 1 << " " << cnt << endl;
  }
}
