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

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