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

int main(){
  int n;
  cin >> n;

  set<int> color;
  int high = 0;

  for(int i=0;i<n;i++){
    int rate;
    cin >> rate;
    if(rate>=3200) high++;
    else color.insert(rate/400);
  }
  const int ans_min = max(1,int(color.size()));
	const int ans_max = high + int(color.size());
  cout << ans_min << " " << ans_max << endl;
	return 0;
}