#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1e9;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = (0); i < (n); ++i) cin >> a[i];
  map<int, int> mp;
  for (int i = (0); i < (n); ++i) {
    if (a[i] >= 3200)
      mp[8]++;
    else
      mp[a[i] / 400]++;
  }
  int ans = 0;
  int c = 0;
  for (auto a : mp) {
    int idx = a.first;
    int cnt = a.second;
    if (idx < 8)
      ans++;
    else
      c += cnt;
  }
  printf("%d %d\n", ans, ans + c);
  return 0;
}
