#include <bits/stdc++.h>
using namespace std;
static const double EPS = 1e-9;
struct edge {
  int from, to;
  edge(int from, int to) {
    this->from = from;
    this->to = to;
  }
};
int V, E;
vector<vector<edge> > G;
int col[9];
int go(int v) {
  if (1 <= v && v <= 399) return 0;
  if (400 <= v && v <= 799) return 1;
  if (800 <= v && v <= 1199) return 2;
  if (1200 <= v && v <= 1599) return 3;
  if (1600 <= v && v <= 1999) return 4;
  if (2000 <= v && v <= 2399) return 5;
  if (2400 <= v && v <= 2799) return 6;
  if (2800 <= v && v <= 3199) return 7;
  return 8;
}
int main() {
  int n, a;
  cin >> n;
  for (int i = 0; i < (int)(n); ++i) {
    cin >> a;
    col[go(a)] = 1;
  }
  int ans = count(col, col + 8, 1);
  if (col[8] == 1)
    cout << ans << " " << ans + 2 << endl;
  else
    cout << ans << " " << ans << endl;
  return 0;
}
