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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using ll = long long;

int main(){
  int n;
  cin>>n;
  int free;
  vector<int> a(n),rate(8);
  rep(i,n){
    int tmp = 0;
    cin >> tmp;
    if(tmp>=3200)free++;
    else if(tmp>=2800)rate.at(7)++;
    else if(tmp>=2400)rate.at(6)++;
    else if(tmp>=2000)rate.at(5)++;
    else if(tmp>=1600)rate.at(4)++;
    else if(tmp>=1200)rate.at(3)++;
    else if(tmp>=800)rate.at(2)++;
    else if(tmp>=400)rate.at(1)++;
    else rate.at(0)++;
  }
  int ans = 0;
  for(auto i : rate){
    if(i!=0)ans++;
  }
  
  cout<<max(ans,1);<<" "<<ans+free<<endl;
  return 0;
}
