#include <bits/stdc++.h>
using namespace std;
const int N_MAX = 100;
int calcRate(int val);
int countRate();
int N;
int a[N_MAX + 10];
int rate[9];
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < 9; i++) rate[i] = 0;
  for (int i = 0; i < N; i++) rate[calcRate(a[i])]++;
  int max, min;
  min = countRate();
  max = min + rate[8];
  if (max > 8) max = 8;
  if (min == 0) min = 1;
  cout << min << " " << max << endl;
}
int calcRate(int val) {
  if (1 <= val && val <= 399) return 0;
  if (400 <= val && val <= 799) return 1;
  if (800 <= val && val <= 1199) return 2;
  if (1200 <= val && val <= 1599) return 3;
  if (1600 <= val && val <= 1999) return 4;
  if (2000 <= val && val <= 2399) return 5;
  if (2400 <= val && val <= 2799) return 6;
  if (2800 <= val && val <= 3199) return 7;
  if (3200 <= val) return 8;
}
int countRate() {
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      count++;
    }
  }
  return count;
}
