#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  int R;
  int C[9]={};
  for (int i=0;i<N;i++){
    cin >> R;
    C[R>=3200?8:R/400]++;
  }
  int ans=0;
  for (int i=0;i<8;i++){
    ans+=C[i]>0?1:0;
  }
  cout << (ans==0?1:ans) << " " << ans+C[8] << endl; 
}
