#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool s[8] = {};
  int cnt = 0, f = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (!s[a / 400] && a < 3200) {
      cnt++;
      s[a / 400] = 1;
    } else if (a >= 3200) {
      f++;
    }
  }
  cout << cnt << " " << cnt + f << endl;
  return 0;
}
