#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vll = vector<long long>;
long long mod = 1e9 + 7;
using namespace std;
using Graph = vector<vector<int>>;
Graph G;
const int AMAX = 100000;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> data(N);
  vector<int> rank(9);
  for (int i = 0; i < N; i++) {
    cin >> data[i];
    if (1 <= data[i] && data[i] <= 399) {
      rank[0]++;
    }
    if (400 <= data[i] && data[i] <= 799) {
      rank[1]++;
    }
    if (800 <= data[i] && data[i] <= 1199) {
      rank[2]++;
    }
    if (1200 <= data[i] && data[i] <= 1599) {
      rank[3]++;
    }
    if (1600 <= data[i] && data[i] <= 1999) {
      rank[4]++;
    }
    if (2000 <= data[i] && data[i] <= 2399) {
      rank[5]++;
    }
    if (2400 <= data[i] && data[i] <= 2799) {
      rank[6]++;
    }
    if (2800 <= data[i] && data[i] <= 3199) {
      rank[7]++;
    }
    if (3200 <= data[i]) {
      rank[8]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (rank[i] > 0) {
      ans++;
    }
  }
  int max, min = 0;
  if (ans + rank[8] >= 8) {
    max = 8;
  } else if (ans + rank[8] < 8) {
    max = ans + rank[8];
  }
  if (ans >= 1) {
    min = ans;
  } else if (ans == 0) {
    min = 1;
  }
  cout << min << " " << max << endl;
  return 0;
}
