#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const long long INF = (long long)1e18;
const double eps = 1e-9;
const double pi = acos(-1.0);
const int N = 100100;
int n, a[1111], cnt, ans;
bool u[10];
int cr[9] = {1, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int main() {
  cin >> n;
  for (int i = 0; (int)i < n; ++i) cin >> a[i];
  for (int i = 0; (int)i < n; ++i) {
    for (int j = 0; (int)j < 9; ++j) {
      if (a[i] < cr[j]) {
        u[i] = 1;
        break;
      } else if (a[i] >= 3200) {
        cnt++;
        break;
      }
    }
  }
  for (int i = 1; (int)i < 9; ++i) ans += u[i];
  cout << ans << " " << cnt + ans;
  return 0;
}
