#aiinclude <iostream>
#define MAX_N 200
using namespace std;
int main(void){
  int n;
  int cn[MAX_N] = {0};
  int fc = 0;
  cin >> n;
  for(int i = 0; i < n; i++){
    int a;
    cin >> a;
    if(a >= 3200) fc++;
    else cn[a/400] = 1;
  }
  int mi = 0;
  for(int i = 0; i < 8; i++) mi += cn[i];
  if(mi == 0) mi = 1;
  int max;
  if(mi+fc >= 8) max = 8;
  else max = mi+fc;
  cout << mi << " " << max << endl;
  return 0;
}
