#define _GLIBCXX_DEBUG
#define rep(i,n) for(int i=0;i<n;i++)
#include <bits/stdc++.h>
#include <numeric>
using namespace std;
typedef long long ll;
const int mod= 1e+9+7;

int main() {
    int N; cin>>N;
    vector<int>a(N);
      bitset<8>b;
      int cnt=0;
    rep(i,N){
        cin>>a[i];
        if(a[i]>=3200){
            cnt++;
            continue;
        }
        b.set(a[i]/400);
    }
    int bb =b.count();
    cout<<bb<" ";
    if(bb+cnt>=8)cout<<8<<endl;
    else cout<<bb+cnt<<endl;
    }
 

