#include <bits/stdc++.h>
using namespace std;
const long long linf = (1ll << 61);
const int inf = 1001001001;
const int mod = 1000000007;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> col(9);
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    if (a >= 3200) a = 3200;
    col[int(a / 400)]++;
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i) ans += (col[i] >= 1);
  if (ans == 0) {
    printf("%d %d\n", col[8] >= 1, min(8, col[8]));
    return 0;
  }
  printf("%d ", ans);
  ans = min(8, ans + col[8]);
  printf("%d\n", ans);
  return 0;
}
