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

int main(){
  int n,a[9],b,count=0;
  r(i,9)a[i]=0;
  cin >> n;
  r(i,n){
    cin >> b;
    if(b<3200)a[b/400]++;
    else a[8]++;
  }
  r(i,8)if(a[i]>0)count++;
  cout << max(count,1) << " " << count+a[8]<<endl;
}