#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vii = vector<vi>;
using vs = vector<string>;
using pii = pair<int, int>;
using vll = vector<long long>;
using Graph = vii;
const long long MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vi a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int r = 399;
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    for (int j = 0; j < n; j++) {
      if (400 * i <= a[j] && a[j] <= r + 400 * i) {
        ans++;
        break;
      }
    }
  }
  int k = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] >= 3200) k++;
  }
  cout << ans << " " << ans + k << endl;
}
