#include <bits/stdc++.h>
using namespace std;
int f[300];
int main() {
  int n, i, x, minn = 0, maxx = 0;
  cin >> n;
  int v[n + 1];
  char c[n + 1];
  for (i = 1; i <= n; i++) {
    cin >> v[i];
  }
  for (i = 1; i <= n; i++) {
    if (v[i] >= 1 && v[i] <= 399) f['g']++;
    if (v[i] >= 400 && v[i] <= 799) f['r']++;
    if (v[i] >= 800 && v[i] <= 1199) f['e']++;
    if (v[i] >= 1200 && v[i] <= 1599) f['c']++;
    if (v[i] >= 1600 && v[i] <= 1999) f['b']++;
    if (v[i] >= 2000 && v[i] <= 2399) f['y']++;
    if (v[i] >= 2400 && v[i] <= 2799) f['o']++;
    if (v[i] >= 2800 && v[i] <= 3199) f['d']++;
    if (v[i] >= 3200) f['a']++;
  }
  for (i = 97; i <= 122; i++) {
    if ((i == 'g' || i == 'r' || i == 'e' || i == 'c' || i == 'b' || i == 'y' ||
         i == 'o' || i == 'd') &&
        f[i] != 0)
      minn++, maxx++;
    if (i == 'a' && f[i] != 0) maxx += f[i];
  }
  cout << minn << " " << maxx;
  return 0;
}
