#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const int INF = 1001001001;
int main(void) {
  int n;
  cin >> n;
  map<int, int> mp;
  int over = 0;
  for (ll i = (0); i < (n); i++) {
    int a;
    cin >> a;
    for (ll i = (0); i < (8); i++) {
      if (a < 400 * (i + 1)) {
        mp[i]++;
        break;
      }
    }
    if (a >= 3200) over++;
  }
  int m = mp.size();
  printf("%d %d\n", max(1, m), min(m + over, 8));
  return 0;
}
