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

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

  int color[10] = {};
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200) color[a / 400] = 1;
    else color[8]++;
  }

  int cnt = 0;
  for (int i = 0; i < 8; i++) cnt += color[i];

  int minv = max(1, cnt), maxv = cnt + color[8];

  cout << minv << " " << maxv << endl;
}