#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
const long long MOD = 1000000007;
using pint = pair<long long, long long>;
int main() {
  long long N;
  cin >> N;
  vector<long long> rate(9, 0);
  for (int i = 0; i < N; i++) {
    long long tmp = 0;
    cin >> tmp;
    if (tmp >= 1 && tmp <= 399) rate[0]++;
    if (tmp >= 400 && tmp <= 799) rate[1]++;
    if (tmp >= 800 && tmp <= 1199) rate[2]++;
    if (tmp >= 1200 && tmp <= 1599) rate[3]++;
    if (tmp >= 1600 && tmp <= 1999) rate[4]++;
    if (tmp >= 2000 && tmp <= 2399) rate[5]++;
    if (tmp >= 2400 && tmp <= 2799) rate[6]++;
    if (tmp >= 2800 && tmp <= 3199) rate[7]++;
    if (tmp >= 3200) rate[8]++;
  }
  long long cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) cnt++;
  }
  cout << cnt << " " << cnt + rate[8] << endl;
  return 0;
}
