#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<int> cnt(7);
  int x = 0;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      x++;
    else
      cnt[a / 400]++;
  }
  int mn = 0;
  for (int i = 0; i < (8); i++) {
    if (cnt[i] != 0) mn++;
  }
  cout << mn << " " << mn + x << endl;
  return 0;
}
