#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  vector<long long> cnt(9, 0);
  long long n;
  cin >> n;
  for (long long i = 0, x; i < n; i++) {
    cin >> x;
    if (x <= 399)
      cnt[0]++;
    else if (x <= 799)
      cnt[1]++;
    else if (x <= 1199)
      cnt[2]++;
    else if (x <= 1599)
      cnt[3]++;
    else if (x <= 1999)
      cnt[4]++;
    else if (x <= 2399)
      cnt[5]++;
    else if (x <= 2799)
      cnt[6]++;
    else if (x <= 3199)
      cnt[7]++;
    else
      cnt[8]++;
  }
  long long mn = 0;
  for (long long i = 0; i < 8; i++) mn += (cnt[i] > 0);
  if (mn >= 1)
    cout << mn << " " << mn + cnt[7];
  else
    cout << 1 << " " << cnt[7];
}
