#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0;i<n;i++)
using ll = long long;
using P = pair<ll,ll>;

int main(){
  int n;cin>>n;
  vector<int> v(n);
  rep(i,n){
    cin>>v.at(i);
  }
  vector<int> color(8,0);
  int other=0;
  rep(i,n){
    if (0<=v.at(i) && v.at(i) <= 399){
      color.at(0)++;
    }
    else if (400<=v.at(i) && v.at(i)<=799){
      color.at(1)++;
    }
    else if (800<=v.at(i) && v.at(i)<=1199){
      color.at(2)++;
    }
    else if (1200<=v.at(i) && v.at(i)<=1599){
      color.at(3)++;
    }
    else if (1600<=v.at(i) && v.at(i)<=1999){
      color.at(4)++;
    }
    else if (2000<=v.at(i) && v.at(i)<=2399){
      color.at(5)++;
    }
    else if (2400<=v.at(i) && v.at(i)<=2799){
      color.at(6)++;
    }
    else if (2800<=v.at(i) && v.at(i)<=3199){
      color.at(7)++;
    }
    else if (3200<=v.at(i)){
      other++;
    }
  }
  int sum=0;
  rep(i,8){
    if (color.at(i) > 0){
      sum++;
    }
  }
  if (sum<=other){
    if (sum==0 || sum == 1){
      cout << 1 << " " << sum + other << endl;
    }
    else{
      cout << sum << " " << sum + other << endl;
  }
  else {
    cout << sum << " " << sum + other << endl;
  }
}