#include <bits/stdc++.h>
using namespace std;
long long N, M, H, W, K, Q, A, B, C, L, R;
string S, T;
const long long MOD = (1e+9) + 7;
const long long INF = 1LL << 60;
const long double EPS = 1e-9;
int main() {
  cin >> N;
  set<long long> c;
  long long non = 0;
  for (int i = 0; i < N; i++) {
    cin >> A;
    for (int j = 1; j < 9; j++) {
      if (A < j * 400) {
        c.insert(j);
        break;
      }
      if (j == 8) ++non;
    }
  }
  cout << c.size() << ' ' << c.size() + non << endl;
}
