#include <bits/stdc++.h>
using namespace std;
const int INF = 100000000;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  int ans = 0;
  int sum = 0;
  for (int i = 400; i <= 3200; i += 400) {
    int now = 0;
    for (int j = 0; j < n; ++j) {
      a[j] -= 400;
      if (a[j] < 0) now++;
    }
    if (now != sum) ans++;
    sum = now;
  }
  cout << ans << " ";
  for (int i = 0; i < n; ++i)
    if (a[i] >= 0) ans++;
  cout << min(8, ans) << endl;
  return 0;
}
