#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
int main() {
  int N;
  cin >> N;
  int A[9];
  for (ll i = 0; i < (9); i++) A[i] = 0;
  for (ll i = 0; i < (N); i++) {
    int tmp;
    cin >> tmp;
    tmp = min(tmp / 400, 8);
    A[tmp]++;
  }
  int ans = 0;
  for (ll i = 0; i < (8); i++) {
    if (A[i] >= 1) ans++;
  }
  int min_ans;
  min_ans = max(ans, 1);
  int max_ans;
  max_ans = min(ans + A[8], 8);
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
