#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
int main() {
  int n;
  cin >> n;
  vector<int> s(n);
  for (int i = 0; i < n; i++) cin >> s[i];
  bool a = false;
  bool b = false;
  bool c = false;
  bool d = false;
  bool e = false;
  bool f = false;
  bool g = false;
  bool h = false;
  int count = 0;
  for (int i = 0; i < n; i++) {
    int k = s[i];
    if (k <= 399)
      a = true;
    else if (k <= 799)
      b = true;
    else if (k <= 1199)
      c = true;
    else if (k <= 1599)
      d = true;
    else if (k <= 1999)
      e = true;
    else if (k <= 2399)
      f = true;
    else if (k <= 2799)
      g = true;
    else if (k <= 3199)
      h = true;
    else
      count++;
  }
  int total = 0;
  if (a) total++;
  if (b) total++;
  if (c) total++;
  if (d) total++;
  if (e) total++;
  if (f) total++;
  if (g) total++;
  if (h) total++;
  int ans = count + total;
  if (ans >= n) ans = n;
  if (total == 0) cout << 1 << " " << ans << endl;
  if (count + total >= n)
    cout << total << " " << n << endl;
  else
    cout << total << " " << count + total << endl;
}
