#include <bits/stdc++.h>
using namespace std;
long long n, a[200];
long long ans = 0, maxi;
map<long long, long long> col;
signed main() {
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    long long c = a[i] / 400;
    if (a[i] > 3199) c = 8;
    col[c]++;
  }
  for (long long i = 0; i < 8; i++) {
    if (col[i] > 0) ans++;
  }
  maxi = ans + col[8];
  cout << ans << " " << maxi << endl;
  return 0;
}
