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

int main(){
  int a, N, colour[9] = {}, ans = 0;
  cin >> N;
  
  for (int i = 0; i < N; i++){
    cin >> a;
    colour[min(a/400, 8)]++;
  }
  
  for (int i = 0; i < 8; i++){
    if (colour[i] > 0){
      ans += 1;
    }
  }
  
  cout << max(ans, 1) << " " << ans+colour[8] << endl;
}