#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  int r[9] = {0};
  for (int i = 0; i < n; i++) {
    if (arr[i] >= 3200) arr[i] = 3200;
    r[arr[i] / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (r[i]) ans++;
  }
  cout << min(ans, 1) << ' ' << ans + r[8];
  return 0;
}
