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