#include <bits/stdc++.h>
#pragma target("avx")
#pragma optimize("O3")
using ll = int_fast64_t;
using P = std::pair<ll, ll>;
using PP = std::pair<ll, P>;
using V = std::vector<ll>;
template <typename T>
using pq = std::priority_queue<T>;
template <typename T>
using rpq = std::priority_queue<T, std::vector<T>, std::greater<T>>;
const int MOD = 1e9 + 7;
const ll INF = 1e18;
int dx[] = {0, 1, 0, -1, 1, 1, -1, -1}, dy[] = {1, 0, -1, 0, 1, -1, -1, 1};
int main() {
  int n, col[9] = {};
  scanf("%d", &n);
  for (ll i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    col[a / 400]++;
  }
  int cnt = 0;
  for (ll i = 0; i < 8; i++) cnt += !!col[i];
  printf("%d %d\n", cnt, cnt + col[8]);
  return 0;
}
