#include <bits/stdc++.h>
using namespace std;
int color(int n) {
  if (1 <= n && n <= 399) return 0;
  if (400 <= n && n <= 799) return 1;
  if (800 <= n && n <= 1199) return 2;
  if (1200 <= n && n <= 1599) return 3;
  if (1600 <= n && n <= 1999) return 4;
  if (2000 <= n && n <= 2399) return 5;
  if (2400 <= n && n <= 2799) return 6;
  if (2800 <= n && n <= 3199)
    return 7;
  else
    return 8;
}
int main() {
  int n, minimum, maximum;
  cin >> n;
  int s[9];
  for (int i = 0; i < 9; i++) s[i] = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (color(a) != 8)
      s[color(a)] = 1;
    else
      s[color(a)]++;
  }
  int tmp = 0;
  for (int i = 0; i < 8; i++) tmp += s[i];
  if (s[8] == 0)
    minimum = maximum = tmp;
  else if (tmp == 0) {
    minimum = 1;
    maximum = min(s[8], 8);
  } else {
    minimum = tmp;
    maximum = min(tmp + s[8], 8);
  }
  cout << minimum << " " << maximum << endl;
}
