#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> color(10, false);
  int free = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      color[a / 400] = true;
    else
      free++;
  }
  int sum = 0;
  for (int i = 0; i <= 7; i++)
    if (color[i]) sum++;
  int lastcolor = 8 - sum;
  cout << max(sum, 1) << ' ' << sum + min(free, lastcolor) << endl;
}
