#include <bits/stdc++.h>
using namespace std;
int f[9];
int main() {
  int n, a;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a <= 399)
      f[0]++;
    else if (a <= 799)
      f[1]++;
    else if (a <= 1199)
      f[2]++;
    else if (a <= 1599)
      f[3]++;
    else if (a <= 1999)
      f[4]++;
    else if (a <= 2399)
      f[5]++;
    else if (a <= 2799)
      f[6]++;
    else if (a <= 3199)
      f[7]++;
    else
      f[8]++;
  }
  int diff = 0;
  for (int i = 0; i < 8; i++)
    if (f[i]) diff++;
  int can = f[8];
  cout << diff << " " << diff + can << endl;
  return 0;
}
