#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  bool c[8];
  int temp;
  int count = 0;
  for (int i = 0; i < 8; i++) c[i] = false;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    temp /= 400;
    if (temp < 8)
      c[temp] = true;
    else
      count++;
  }
  temp = 0;
  for (int i = 0; i < 8; i++)
    if (c[i]) temp++;
  int ansmin = max(temp, 1);
  int ansmax = min(8, temp + count);
  cout << ansmin << " " << ansmax << endl;
  return 0;
}
