#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int dx[] = {1, 0, -1, 0};
int dy[] = {0, -1, 0, 1};
const ll INF = 10010010010001;
vector<vector<bool>> graph;
vector<bool> reached;
ll MOD = 1000000007;
int main() {
  int N;
  cin >> N;
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      color[8]++;
    } else {
      color[a / 400]++;
    }
  }
  int rbw = 0;
  int colors = 0;
  if (color[8] > 0) {
    rbw = color[8];
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      colors++;
    }
  }
  cout << colors << ' ' << colors + rbw << endl;
}
