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

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 cnt=0;
  for(int i=0;i<c.size()-1;i++){
    if(c[i]>0){cnt++;}
  }
  cout << max(cnt,1) << " " << cnt + c[8] <<endl;
}