#include <bits/stdc++.h>
using namespace std;
int main() {
  int size;
  cin >> size;
  int arr[size];
  for (int i = 0; i < size; i++) cin >> arr[i];
  char mark[8];
  memset(mark, 0, sizeof(mark));
  int count = 0;
  for (int i = 0; i < size; i++) {
    if (arr[i] / 400 <= 7)
      mark[arr[i] / 400] = 1;
    else
      count++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++)
    if (mark[i]) cnt++;
  if (cnt == 0) cnt = 1;
  cout << cnt << " " << cnt + count;
  return 0;
}
