#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  while (min(a, b) > 0) {
    if (a < b) swap(a, b);
    a %= b;
  }
  return max(a, b);
}
int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[] = {0, 1, 0, -1, 1, 1, -1, -1};
const int MOD = 1e9 + 7;
const long long INF = 1e18 + 10;
signed main() {
  int n;
  cin >> n;
  vector<int> cnt(9, 0);
  for (int _ = 0; _ < (n); _++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      a = 3200;
    }
    cnt[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < (8); i++) ans += (cnt[i] > 0);
  cout << ans << ' ' << ans + cnt[8] << endl;
  return 0;
}
