#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
const ll INF = MOD * MOD;
const int inf = (1 << 29);
int color(int a) {
  int b = a / 400;
  if (a >= 3200) b = 8;
  return b;
}
int main() {
  int a, n, x = 0, num = 0;
  cin >> n;
  set<int> st;
  for (int i = 0; i < (n); i++) {
    cin >> a;
    if (a >= 3200) x++;
    st.insert(color(a));
  }
  for (auto a : st) {
    num++;
  }
  if (num == 1 && a >= 3200) {
    cout << 1 << " " << 1 << endl;
    return 0;
  }
  cout << (x ? num - 1 : num) << " " << (x ? num + x - 1 : num) << endl;
  return 0;
}
