#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int INF = 1000000009;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> v(9);
  int cnt = 0;
  int cnt2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (v[a[i] / 400] && a[i] < 3200) {
      cnt++;
      v[a[i] / 400]++;
    }
    if (a[i] >= 3200) {
      cnt2++;
    }
  }
  cout << max(1, cnt) << " " << cnt2 + cnt << "\n";
}
