#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int> a(n), c(9, 0);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] = min(a[i], 3200);
    c[a[i]/400]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) count++;
  }
  
  cout << max(count, 1) << ' ' << count + c[8] << endl;
}