#include <bits/stdc++.h>
int INF = 1e9 + 7;
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1) {
  unsigned day;
  if (dow < dow1) dow += 7;
  day = dow - dow1;
  day += 7 * n - 6;
  return day;
}
signed gcd(long long x, long long y) {
  if (y == 0) return x;
  return gcd(y, x % y);
}
signed lcm(long long x, long long y) { return x / gcd(x, y) * y; }
unsigned DayToWeekNumber(unsigned day) { return (day - 1) / 7 + 1; }
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0) {
  return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main() {
  int N;
  cin >> N;
  vector<int> A(N);
  vector<int> B(9);
  int ans = 0;
  for (int i = 0; i < (int)(N); i++) {
    cin >> A[i];
    if (A[i] < 400)
      B[0] = 1;
    else if (A[i] < 800)
      B[1] = 1;
    else if (A[i] < 1200)
      B[2] = 1;
    else if (A[i] < 1600)
      B[3] = 1;
    else if (A[i] < 2000)
      B[4] = 1;
    else if (A[i] < 2400)
      B[5] = 1;
    else if (A[i] < 2800)
      B[6] = 1;
    else if (A[i] < 3200)
      B[7] = 1;
    else
      B[8]++;
  }
  for (int i = 0; i < (int)(9); i++) ans += B[i];
  cout << ans - B[8] << " " << ans << endl;
}
