#include <bits/stdc++.h>
using namespace std;
void file() {}
int tc;
const int N = 1e6 + 5, M = 2e6 + 5, MOD = 1e9 + 7, OO = 1e9;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  scanf("%d", &n);
  int cnt = 0;
  std::vector<int> v = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  set<int> s;
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    auto it = upper_bound((v).begin(), (v).end(), x);
    if (it == v.end())
      cnt++;
    else
      s.insert(*it);
  }
  printf("%d %d\n", ((int)(s).size()), ((int)(s).size()) + cnt);
}
