#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<int> a(8, 0);
  int over = 0;
  for (ll i = 0; i < (n); ++i) {
    int b;
    cin >> b;
    if (1 <= b && b <= 399) a[0]++;
    for (ll j = (1); j < (8); ++j) {
      if (j * 400 <= b && b <= j * 400 + 399) a[j]++;
    }
    if (3200 <= b) over++;
  }
  int color = 0;
  for (ll i = 0; i < (8); ++i) {
    if (a[i] != 0) color++;
  }
  cout << color << " ";
  cout << color + over << endl;
  return 0;
}
