#include <bits/stdc++.h>
using namespace std;
int kind[8] = {};
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int ans = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    a = min(a, 8);
    if (a == 8)
      ans++;
    else
      kind[a] = 1;
  }
  int ans1 = 0;
  for (int i = 0; i < 8; i++) ans1 += kind[i];
  cout << ans1 << " " << max(1, ans1 + ans) << endl;
  return 0;
}
