#include <bits/stdc++.h>
using namespace std;
int pos[1256];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, a = 0, b = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    int ind = x / 400;
    ind = min(ind, 8);
    pos[ind]++;
  }
  for (int i = 0; i < 8; i++) {
    a += 0 != pos[i];
  }
  b = a;
  a = max(1, a);
  {
    b = b + pos[8];
    b = min(8, b);
  }
  cout << a << ' ' << b;
  return 0;
}
