#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  int pro = 0;
  int num[N];
  int p[8] = {0,0,0,0,0,0,0,0}
  for(int i = 0;i<N;i++){
    cin >> num[i];
    for(int k = 0;k<8;k++){
      if(k*400 <= num[i] < (k+1)*400){
        p[k]++;
      }
      if(p[i]>=3200){
        pro++;
      }
    }
  }
  int ans = 0;
  for(int i = 0;i<8;i++){
    if(p[k] != 0){
      ans++;
    }
  }
  int ansmax = 0;
  ansmax = max(8,ans+pro);
  cout << ans << " " << ansmax << endl;
}
