#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  int N;
  cin >> N;
  map<long long, long long> mp;
  int a;
  for (int i = 0; i < (int)(N); i++) {
    cin >> a;
    if (a >= 3200) {
      a = 3200;
    }
    mp[a / 400]++;
  }
  int min_ans, max_ans;
  if (mp[8] == 0) {
    min_ans = mp.size() - 1;
    max_ans = mp.size() - 1;
  } else {
    min_ans = mp.size() - 1;
    max_ans = mp.size() - 1 + mp[8];
    if (max_ans > 8) {
      max_ans = 8;
    }
  }
  cout << min_ans << ' ' << max_ans << endl;
}
