#include<bits/stdc++.h>
using namespace std;

int main(){
  int n,fr = 0;
  cin >> n;
  int a[n];
  for(int i = 0;i < n;i++){
    cin >> a[i];
    if(a[i] >= 3200){
      fr++;
    }
  }
  int color = 0;
  for(int i = 0;i < 2801;i += 400){
    for(int j = 0;j < n;j++){
      if(a[j] < i + 400 && i <= a[j]){
        color++;
        break;
      }
    }
  }
  int mi = color,fr,ma = color+fr;
  if(color != 0){
    cout << mi << " " << ma << endl;
  }
  else{
    cout << 1 << " " << ma << endl;
  }
}
}