#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
 
#define rep(i,n) for(int i = 0;i<n;i++)
const long long MOD = 1000000007;

 
int main(){
    int n;cin >> n;
    int type[9] = {};
    rep(i,n){
        int rate;cin >> rate;
        rate /= 400;
        if(rate>= 8) rate = 8;
        type[rate] += 1;
    }
    int small = 0;
    for(int i = 0; i < 8; i++){
        if(type[i] > 0) small += 1;
    }
    int large = small + type[8];
    if(small == 0) small = 1;
    cout << small <<" "<< large<<endl;