#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m;i<n;i++)
#define fix(n) cout<<fixed<<setprecision(n)
#define co(n) cout<<n<<endl
#define all(n) (n).begin(),(n).end()
using namespace std;
typedef long long ll;
const ll mod=1000000007;
double pi=3.1415926535;

int main(){
  int n;
  cin>>n;
  int a,b,c=0,ans=0,x[8]={};
  rep(i,0,n){
    cin>>a;
    if(a<3200) x[a/400]++;
    else c++;
  }
  rep(i,0,8) if(x[i]>0) ans++;
  if(ams>0) cout<<ans<<" ";
  else cout<<1<<" ";
  if(ans+c>8) co(8);
  else co(ans+c);
  
  
  return 0;
}
