#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
const int mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int a[n];
  set<int> s;
  int red = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200)
      s.insert(a[i] / 400);
    else
      red++;
  }
  int MIN = s.size();
  int MAX = s.size() + red;
  printf("%d %d\n", MIN, MAX);
}
