#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, col[9] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a > 3200) a = 3200;
    col[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += (col[i] > 0);
  }
  cout << ans << " " << (ans + col[8]) << endl;
}
