#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (int)(n); ++i) cin >> a[i];
  int ans = 0;
  int genius = 0;
  bool color[8] = {false};
  for (int i = 0; i < (int)(n); ++i) {
    if (a[i] <= 399 && !color[0]) {
      ++ans;
      color[0] = true;
    } else if (a[i] >= 400 && a[i] <= 799 && !color[1]) {
      ++ans;
      color[1] = true;
    } else if (a[i] >= 800 && a[i] <= 1199 && !color[2]) {
      ++ans;
      color[2] = true;
    } else if (a[i] >= 1200 && a[i] <= 1599 && !color[3]) {
      ++ans;
      color[3] = true;
    } else if (a[i] >= 1600 && a[i] <= 1999 && !color[4]) {
      ++ans;
      color[4] = true;
    } else if (a[i] >= 2000 && a[i] <= 2399 && !color[5]) {
      ++ans;
      color[5] = true;
    } else if (a[i] >= 2400 && a[i] <= 2799 && !color[6]) {
      ++ans;
      color[6] = true;
    } else if (a[i] >= 2800 && a[i] <= 3199 && !color[7]) {
      ++ans;
      color[7] = true;
    } else if (a[i] >= 3200)
      ++genius;
  }
  cout << ans << " " << ans + genius << endl;
}
