#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int n;
int main() {
  cin >> n;
  vector<int> a(n);
  int ans = 1;
  int minans = 1;
  for (int i = 0; i < (n); i++) {
    int A;
    cin >> A;
    A /= 400;
    if (A >= 8) {
      A = 8;
    }
    a[i] = A;
  }
  sort((a).begin(), (a).end());
  for (int i = 1; i < n; i++) {
    if (a[i] != a[i - 1] && a[i] < 8) {
      ans++;
      minans++;
    } else if (a[i] == 8) {
      ans++;
    }
    if (ans == 8) {
      break;
    }
  }
  cout << minans << " " << ans << endl;
}
