#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> mp;
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    mp[a / 400]++;
  }
  int n = 0;
  for (int i = 0; i < 8; i++) n += (mp[i] > 0) ? 1 : 0;
  int min = (n > 0) ? n : 1;
  int max = (n + mp[8] < 8) ? n + mp[8] : 8;
  cout << min << " " << max << endl;
  return 0;
}
