#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      color[a / 400]++;
    else
      color[8]++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++)
    if (color[i] > 0) cnt++;
  int minv = cnt, maxv = cnt + color[8];
  cout << minv << " " << maxv << endl;
}
