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