#include <bits/stdc++.h>
using namespace std;
int a[105];
int book[10];
int pd(int x) {
  if (x <= 399) return 1;
  if (x <= 799) return 2;
  if (x <= 1199) return 3;
  if (x <= 1599) return 4;
  if (x <= 1999) return 5;
  if (x <= 2399) return 6;
  if (x <= 2799) return 7;
  if (x <= 3199) return 8;
}
int main() {
  int n;
  cin >> n;
  int tot = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      int t = pd(a[i]);
      book[t] = 1;
    } else {
      tot++;
    }
  }
  int all = 0;
  for (int i = 1; i <= 8; i++) {
    all += book[i];
  }
  int all2 = all + tot;
  if (all == 0) all = 0;
  cout << all << " " << all2 << endl;
}
