#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> vec(20);
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    vec[a / 400]++;
  }
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < (20); i++) {
    if (i > 7)
      cnt2 += vec[i];
    else {
      if (vec[i] > 0) cnt1++;
    }
  }
  cout << cnt1 << " " << cnt1 + cnt2 << endl;
}
