#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
  int n, cnt=0;cin>>n;
  vector<int> a(n), rate(9,0);
  for(int i=0;i<n;i++){
    cin >> a[i];
    a[i] = min(a[i], 3200);
    rate[a[i]/400]++;
  }
  for(int i=0;i<8;i++){
    if(rate[i]>0){
      cnt++;
    }
  }
  cout << max(cnt, 1) << " " << cnt+rate[8] << endl;
}