#include <cstdio>
#include <iostream>
using namespace std;

int a[10];

int main(){
  int n;
  cin >> n;
  int t = 0;
  for (int i = 0; i < n; i++){
    int k; cin >> k;
    if (k < 3200) a[k/400]++;
    else t++;
  }
  int u = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) u++;
  }
  cout << max(u, 1) << " " << t + u << endl; 
  return 0;
}
