#include <bits/stdc++.h>
using namespace std;
struct cww {
  cww() {
    ios::sync_with_stdio(false);
    cin.tie(0);
  }
} star;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (auto &x : a) {
    cin >> x;
  }
  set<int> st;
  int cnt = 0, overRED = 0;
  for (int i = 0; i < (N); i++) {
    if (a[i] >= 1 && a[i] < 399) {
      st.emplace(1);
    }
    if (a[i] >= 400 && a[i] < 799) {
      st.emplace(2);
    }
    if (a[i] >= 800 && a[i] < 1199) {
      st.emplace(3);
    }
    if (a[i] >= 1200 && a[i] < 1599) {
      st.emplace(4);
    }
    if (a[i] >= 1600 && a[i] < 1999) {
      st.emplace(5);
    }
    if (a[i] >= 2000 && a[i] < 2399) {
      st.emplace(6);
    }
    if (a[i] >= 2400 && a[i] < 2799) {
      st.emplace(7);
    }
    if (a[i] >= 2800 && a[i] < 3199) {
      st.emplace(8);
    }
    if (a[i] >= 3200) {
      cnt++;
      overRED++;
    }
  }
  if (overRED == N) {
    cout << 1 << " " << st.size() + cnt << endl;
  } else {
    cout << st.size() << " " << st.size() + cnt << endl;
  }
  return 0;
}
