#include<iostream>
#include<vector>
using namespace std;

int main(){
  int n;
  cin >> n;

  int a[110];
  int b[13] = {0,0,0,0,0,0,0,0,0,0,0,0,0};
  for (int i=0; i<n; i++){
    cin >> a[i];
    b[a[i]/400]++;
  }

  int max = 0, min = 0;
  for (int i=0; i<13; i++){
    if (b[i]>0 && i<8){
      max++;
      min++;
    }
    if (b[i]>0 && i>=8){
      max += b[i];
    }
  }

  if (c==0){
    c = 1;
  }

  cout << min << " " << max << endl;
}
