#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const auto INF = (ll)1e9+7;  
using  p = pair<int,int>;
using  v = vector<int>;
auto c = vector<int>(9,0);

void color(int i){
   if(i<3200)
   		c[i/400]++;
	}else{
		c[8]++;
	}
}


int main(){
  int n;
  cin >> n;
  auto a = vector<int>(n,0);
  for (int i = 0; i < n; i++)
  {
     cin >> a[i];
     color(a[i]);
  }

  ll _min = 0;
  ll _max = 0;
  ll num = c.size()-1;
  for (int i = 0; i < c.size(); i++)
  {
     if(i!=num&&c[i]!=0){
        _min++;
     }

     if(i!=num&&c[i]==0&&c[num]>1){
        c[i]++;
        c[num]--;
     }

     if(c[i]!=0) _max++;
  }
  
  cout << _min << " " << _max<<endl;

}
  