#include <bits/stdc++.h>
using namespace std;
char dif = 'A' - 'a';
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int a[110], res = 0, plus = 0;
  int b[8] = {0};
  for (int i = (0); i < (n); i++) {
    cin >> a[i];
    if (1 <= a[i] && a[i] <= 399) b[0]++;
    if (400 <= a[i] && a[i] <= 799) b[1]++;
    if (800 <= a[i] && a[i] <= 1199) b[2]++;
    if (1200 <= a[i] && a[i] <= 1599) b[3]++;
    if (1600 <= a[i] && a[i] <= 1999) b[4]++;
    if (2000 <= a[i] && a[i] <= 2399) b[5]++;
    if (2400 <= a[i] && a[i] <= 2799) b[6]++;
    if (2800 <= a[i] && a[i] <= 3199) b[7]++;
    if (a[i] > 3199) plus++;
  }
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) res++;
  }
  cout << res << ' ' << res + plus << endl;
  return 0;
}
