#include <bits/stdc++.h>
const long long MOD = 1000000007;
using namespace std;
map<long long, int> mp;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> b(8, 0);
  int cnt = 0;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    int c = 0;
    for (int j = 0; j < 8; j++) {
      if (c <= a[i] && a[i] < (c + 400)) b[j]++;
      c += 400;
    }
    if (3200 <= a[i]) cnt++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) ans++;
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
